|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.milyn.rules.RuleProviderAccessor
public final class RuleProviderAccessor
RuleProviderAccessor provides convenience methods for adding and getting rule providers in a Smooks Application context.
| Method Summary | |
|---|---|
static void |
add(org.milyn.container.ApplicationContext context,
RuleProvider provider)
Adds the passed-in provider to the Smooks ApplicationContext. |
static RuleProvider |
get(org.milyn.container.ApplicationContext context,
String ruleProviderName)
Gets a RuleProvider matching the passed in ruleProviderName. |
static Map<String,RuleProvider> |
getRuleProviders(org.milyn.container.ApplicationContext context)
Gets the Map of RuleProviders that exist in the Smooks AppcliationContext. |
static String |
parseRuleName(String compositeRuleName)
Parse the rule name from the passed in composite rule name. |
static String |
parseRuleProviderName(String compositeRuleName)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static final void add(org.milyn.container.ApplicationContext context,
RuleProvider provider)
ApplicationContext.
context - The Smooks ApplicationContext.provider - The RuleProvider that is to be added.
public static final RuleProvider get(org.milyn.container.ApplicationContext context,
String ruleProviderName)
RuleProvider matching the passed in ruleProviderName.
context - The Smooks ApplicationContext.ruleProviderName - The name of the rule provider to lookup.
RuleProvider The RuleProvider matching the passed in ruleProviderName.
org.milyn.SmooksException - If no providers have been previously set in the ApplicationContext, or if
the specified ruleProviderName cannot be found.public static Map<String,RuleProvider> getRuleProviders(org.milyn.container.ApplicationContext context)
context - The Smooks ApplicationContext.
public static String parseRuleName(String compositeRuleName)
compositeRuleName - The composite rule name in the form ruleProvider.ruleName.
String The rule name part of the composite rule name.public static String parseRuleProviderName(String compositeRuleName)
compositeRuleName - The composite rule name in the form ruleProvider.ruleName.
String The rule provider name part of the composite rule name.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||