|
||||||||||
| 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(ApplicationContext context,
RuleProvider provider)
Adds the passed-in provider to the Smooks ApplicationContext. |
static RuleProvider |
get(ApplicationContext context,
java.lang.String ruleProviderName)
Gets a RuleProvider matching the passed in ruleProviderName. |
static java.util.Map<java.lang.String,RuleProvider> |
getRuleProviders(ApplicationContext context)
Gets the Map of RuleProviders that exist in the Smooks AppcliationContext. |
static java.lang.String |
parseRuleName(java.lang.String compositeRuleName)
Parse the rule name from the passed in composite rule name. |
static java.lang.String |
parseRuleProviderName(java.lang.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(ApplicationContext context,
RuleProvider provider)
ApplicationContext.
context - The Smooks ApplicationContext.provider - The RuleProvider that is to be added.
public static final RuleProvider get(ApplicationContext context,
java.lang.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.
SmooksException - If no providers have been previously set in the ApplicationContext, or if
the specified ruleProviderName cannot be found.public static java.util.Map<java.lang.String,RuleProvider> getRuleProviders(ApplicationContext context)
context - The Smooks ApplicationContext.
public static java.lang.String parseRuleName(java.lang.String compositeRuleName)
compositeRuleName - The composite rule name in the form ruleProvider.ruleName.
String The rule name part of the composite rule name.public static java.lang.String parseRuleProviderName(java.lang.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 | |||||||||