com.sdm.quasar.client.jsf.embedding
Class URIResolver
java.lang.Object
com.sdm.quasar.client.jsf.embedding.URIResolver
- All Implemented Interfaces:
- KeywordResolver
- public class URIResolver
- extends java.lang.Object
- implements KeywordResolver
The URIResolver resolves a given keyword
by providing a given object. The object may be a bean or a map
or anything JSF may resolve in the next resolve step.
- Author:
- Marc Jäckle
|
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.
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
URIResolver
public URIResolver(java.lang.String keyword,
DialogInstanceId dialogInstanceId)
- Parameters:
keyword - the keyword, resolved with this resolverdialogInstanceId - the dialog instance Id, this resolver works for
canResolve
public boolean canResolve(java.lang.String keyword)
- Description copied from interface:
KeywordResolver
- Checks, if this resolver is responsible to resolve the given keyword
- Specified by:
canResolve in interface KeywordResolver
- 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)
- Specified by:
getResolvedType in interface KeywordResolver
- Parameters:
keyword - the keyword to be resolve
- Returns:
- the class of the resolved object
resolve
public java.lang.Object resolve(java.lang.String keyword)
- Description copied from interface:
KeywordResolver
- Performs the resolve step according to the keyword.
The Result may be
- an other
KeywordResolver to do the next resolve step
- a {link
ValueResolver for value binding to resolve a value
- an {link
ActionResolver for action binding to resolve an action
- an object that will be resolved further by JSF, e.g. a bean or a map
- Specified by:
resolve in interface KeywordResolver
- Parameters:
keyword - the keyword to be resolve
- Returns:
- the resolved object