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

java.lang.Object
  extended bycom.sdm.quasar.client.jsf.embedding.SlotResolver
All Implemented Interfaces:
ActivationControllerListener, KeywordResolver

public class SlotResolver
extends java.lang.Object
implements KeywordResolver, ActivationControllerListener

This KeywordResolver resolves a slot name (local name) of a dialog instance under which a subdialog has been embedded. The resolved object is again a KeywordResolver provided by dialog instance that is currently embedded in the given slot. The resolved object is used to perform the next resolving step. This KeywordResolver must be installed at dialog that embeds the subdialogs to which it delegates the resolving.

Author:
Marc Jäckle , Martin Haft

Constructor Summary
SlotResolver(java.lang.String keyword, ActivationController activationController)
          Constructor.
 
Method Summary
 boolean canResolve(java.lang.String keyword)
          Checks, if this resolver is responsible to resolve the given keyword
 void childActivated(java.lang.String localName, SubDialogControl subDialogControl)
           
 void childAdded(java.lang.String localName, SubDialogControl subDialogControl)
           
 void childDeactivated(java.lang.String localName, SubDialogControl subDialogControl)
           
 void childRemoved(java.lang.String localName, SubDialogControl subDialogControl)
           
 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

SlotResolver

public SlotResolver(java.lang.String keyword,
                    ActivationController activationController)
Constructor.

Parameters:
keyword - The slot name that should be resolved.
activationController - The ActivationController to which this resolver is registered as an ActivationControllerListener.
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

childActivated

public void childActivated(java.lang.String localName,
                           SubDialogControl subDialogControl)
Specified by:
childActivated in interface ActivationControllerListener

childAdded

public void childAdded(java.lang.String localName,
                       SubDialogControl subDialogControl)
Specified by:
childAdded in interface ActivationControllerListener

childDeactivated

public void childDeactivated(java.lang.String localName,
                             SubDialogControl subDialogControl)
Specified by:
childDeactivated in interface ActivationControllerListener

childRemoved

public void childRemoved(java.lang.String localName,
                         SubDialogControl subDialogControl)
Specified by:
childRemoved in interface ActivationControllerListener