com.sdm.quasar.client.jsf.binding
Interface KeywordResolver

All Known Implementing Classes:
CommandManagerResolver, DataManagerResolver, DialogResolverFeature, KeywordResolverFeature, ObjectResolver, SessionResolverFeature, SlotResolver, URIResolver

public interface KeywordResolver

The KeywordResolver performs one resolve step, see resolve(String). The Result may be

Author:
Martin Haft

Method Summary
 boolean canResolve(java.lang.String keyword)
          Checks, if this resolver is responsible to resolve the given keyword
 java.lang.Class getResolvedType(java.lang.String keyword)
           
 java.lang.Object resolve(java.lang.String keyword)
          Performs the resolve step according to the keyword.
 

Method Detail

canResolve

public boolean canResolve(java.lang.String keyword)
Checks, if this resolver is responsible to resolve the given keyword

Parameters:
keyword - the keywort to be resolved
Returns:
true, if the given keyword can be resolved

getResolvedType

public java.lang.Class getResolvedType(java.lang.String keyword)
Parameters:
keyword - the keyword to be resolve
Returns:
the class of the resolved object
Throws:
java.lang.RuntimeException - if the keyword can not be resolved by this. Use canResolve(String) to check.

resolve

public java.lang.Object resolve(java.lang.String keyword)
Performs the resolve step according to the keyword. The Result may be

Parameters:
keyword - the keyword to be resolve
Returns:
the resolved object
Throws:
java.lang.RuntimeException - if the keyword can not be resolved by this. Use canResolve(String) to check.