|
ABLE 2.3.0 07/13/2005 14:21:00 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectcom.ibm.conversation.base.BasicDecisionLogicAdapterFactory
Class BasicDecisionLogicAdapterFactory is a simple factory of DecisionLogicAdapter objects.
Users configure the factory by supplying (policyName, role, DecisionLogicAdapter-class) tuples. In operation, a user supplies a policy name and role, and a DecisionLogicAdapter of the given class type is created and returned. Note that this assumes that a (policyName, role) pair is sufficient to identify the class type of the DecisionLogicAdapter to create.
| Constructor Summary | |
|---|---|
BasicDecisionLogicAdapterFactory()
Constructs a BasicDecisionLogicAdapterFactory object. |
|
| Method Summary | |
|---|---|
void |
addDecisionLogicClass(java.lang.String policyName,
java.lang.String role,
java.lang.Class dlaClass)
Associates the given DecisionLogicAdapter class with the given (policyName, role) pair. |
DecisionLogicAdapter |
createDecisionLogic(java.lang.String policyName,
java.lang.String role)
Creates and returns a new DecisionLogicAdapter for the (policyName, role) pair. |
boolean |
isSupported(java.lang.String policyName,
java.lang.String role)
Indicates whether the given (policyName, role) pair has had a DecisionLogicAdapter class associated with it. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BasicDecisionLogicAdapterFactory()
| Method Detail |
public boolean isSupported(java.lang.String policyName,
java.lang.String role)
policyName - The name of a conversation policy.role - The role in that conversation policy.
public void addDecisionLogicClass(java.lang.String policyName,
java.lang.String role,
java.lang.Class dlaClass)
If the given class is not assignable to a DecisionLogicAdapter, then this does nothing.
policyName - The name of a conversation policy.role - The role in that conversation policy.dlaClass - The DecisionLogicAdapter class to associate with that (policyName, role)
pair.
public DecisionLogicAdapter createDecisionLogic(java.lang.String policyName,
java.lang.String role)
policyName - The name of a conversation policy.role - The role in that conversation policy.
null if no match was found.
|
ABLE 2.3.0 07/13/2005 14:21:00 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||