com.sdm.quasar.client.jsf.embedding
Class URIResolver

java.lang.Object
  extended bycom.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

Constructor Summary
URIResolver(java.lang.String keyword, DialogInstanceId dialogInstanceId)
           
 
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
 

Constructor Detail

URIResolver

public URIResolver(java.lang.String keyword,
                   DialogInstanceId dialogInstanceId)
Parameters:
keyword - the keyword, resolved with this resolver
dialogInstanceId - the dialog instance Id, this resolver works for
Method Detail

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

Specified by:
resolve in interface KeywordResolver
Parameters:
keyword - the keyword to be resolve
Returns:
the resolved object