|
ABLE 2.0.0 07/02/2003 10:25:01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The ConversationPolicyHandlerFactory interface is responsible for creation and initialization of ConversationPolicyHandlers.
Each ConversationManager has a ConversationPolicyHandlerFactory, which it assigns to each new Conversation when it creates it.
Method Summary | |
---|---|
ConversationPolicyHandler |
getPolicyHandler(java.lang.String cpName,
java.lang.String selfRole)
Creates and returns a new ConversationPolicyHandler initialized with the given conversation policy and role. |
java.util.Set |
getPolicyNames()
Returns the names of the policies this factory is able to create. |
java.util.Collection |
getRoles(java.lang.String policyName)
Returns the roles defined by the given conversation policy. |
boolean |
isPolicySupported(java.lang.String cpName,
java.lang.String selfRole)
Indicates whether the given policy and role is supported. |
Method Detail |
public java.util.Set getPolicyNames()
public java.util.Collection getRoles(java.lang.String policyName)
policyName
- The name of the conversation policy.null
if the policyName was
not found.public boolean isPolicySupported(java.lang.String cpName, java.lang.String selfRole)
public ConversationPolicyHandler getPolicyHandler(java.lang.String cpName, java.lang.String selfRole)
If there is no known policy with the given name, or if the role does not match one of
the roles defined in the policy, returns null
.
cpName
- The name of the conversation policy to be used.selfRole
- The role to play in the conversation policy.null
if creation failed.
|
ABLE 2.0.0 07/02/2003 10:25:01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |