|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.rule.impl.RuleSelectorFactory
This factory class supplies RuleSelector
s that can be
used to select a rule given some rule selection criteria. The appropriate
RuleSelector
is selected based on the RuleType
desired and the type of object that the rule is to be applied to.
Implementations of the RuleSelector
interface should not
be created directly. Instead, an instance of this factory class should
be used to obtain a delegate instance.
This factory class uses information in the services.properties
file to determine the appropriate delegate to return. See getSelector(java.lang.Object, wt.rule.RuleType)
for more information.
Supported API: false
Extendable: false
Field Summary | |
private ApplicationContext |
applicationContext
|
private static String |
CLASSNAME
|
private static String |
RESOURCE
|
private static String |
SERVICE_NAME
|
Fields inherited from interface wt.services.applicationcontext.ApplicationContextChild |
APPLICATION_CONTEXT |
Constructor Summary | |
RuleSelectorFactory()
Create a RuleSelectorFactory . |
Method Summary | |
private ApplicationContextServices |
getApplContextServices()
Get the application context cast as an ApplicationContextServices . |
ApplicationContext |
getApplicationContext()
Gets the object for the association that plays role: applicationContext. |
RuleSelector |
getSelector(Object requestor,
RuleType ruleType)
Returns a selector that can be used to select a rule of the specified ruleType for the specified requestor type. |
void |
setApplicationContext(ApplicationContext a_ApplicationContext)
Sets the object for the association that plays role: applicationContext. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private ApplicationContext applicationContext
private static final String SERVICE_NAME
Constructor Detail |
public RuleSelectorFactory()
RuleSelectorFactory
.
Method Detail |
public RuleSelector getSelector(Object requestor, RuleType ruleType)
ruleType
for the specified requestor
type.
The returned selector is determined based on information in the
An entry for a
services.properties
file. An entry in the services.properties
file looks
like this:
wt.services/svc/<ContextName>/<ServiceName>/<Selector>/<Requestor>/<Order>
RuleSelector
uses the following values:
<ServiceName> ==> wt.rule.RuleSelector
<Selector> ==>
RuleType
<Requestor> ==> requestor type
requestor
- the type of object to select rules for (cannot be null
)ruleType
- the type of rule to be selected (cannot be null
)
public ApplicationContext getApplicationContext()
getApplicationContext
in interface ApplicationContextChild
public void setApplicationContext(ApplicationContext a_ApplicationContext) throws WTPropertyVetoException
setApplicationContext
in interface ApplicationContextChild
a_ApplicationContext
-
WTPropertyVetoException
private ApplicationContextServices getApplContextServices()
ApplicationContextServices
.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |