Class TransletRuleRegistry
- java.lang.Object
-
- com.aspectran.core.component.AbstractComponent
-
- com.aspectran.core.component.translet.TransletRuleRegistry
-
- All Implemented Interfaces:
Component
public class TransletRuleRegistry extends AbstractComponent
The Class TransletRuleRegistry.
-
-
Constructor Summary
Constructors Constructor Description TransletRuleRegistry(ApplicationAdapter applicationAdapter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddTransletRule(TransletRule transletRule)java.lang.StringapplyTransletNamePattern(java.lang.String transletName)Returns the translet name of the prefix and suffix are combined.java.lang.StringapplyTransletNamePattern(java.lang.String transletName, boolean absolutely)Returns the translet name of the prefix and suffix are combined.booleancontains(java.lang.String transletName)booleancontains(java.lang.String transletName, MethodType requestMethod)protected voiddoDestroy()protected voiddoInitialize()TransletRulegetTransletRule(java.lang.String transletName)TransletRulegetTransletRule(java.lang.String transletName, MethodType requestMethod)java.util.Collection<TransletRule>getTransletRules()voidsetAssistantLocal(AssistantLocal assistantLocal)-
Methods inherited from class com.aspectran.core.component.AbstractComponent
destroy, getComponentName, initialize, isAvailable, isDestroyed, isDestroying, isInitialized
-
-
-
-
Constructor Detail
-
TransletRuleRegistry
public TransletRuleRegistry(ApplicationAdapter applicationAdapter)
-
-
Method Detail
-
setAssistantLocal
public void setAssistantLocal(AssistantLocal assistantLocal)
-
getTransletRules
public java.util.Collection<TransletRule> getTransletRules()
-
getTransletRule
public TransletRule getTransletRule(java.lang.String transletName)
-
getTransletRule
public TransletRule getTransletRule(java.lang.String transletName, MethodType requestMethod)
-
contains
public boolean contains(java.lang.String transletName)
-
contains
public boolean contains(java.lang.String transletName, MethodType requestMethod)
-
addTransletRule
public void addTransletRule(TransletRule transletRule) throws IllegalRuleException
- Throws:
IllegalRuleException
-
applyTransletNamePattern
public java.lang.String applyTransletNamePattern(java.lang.String transletName)
Returns the translet name of the prefix and suffix are combined.- Parameters:
transletName- the translet name- Returns:
- the new translet name
-
applyTransletNamePattern
public java.lang.String applyTransletNamePattern(java.lang.String transletName, boolean absolutely)Returns the translet name of the prefix and suffix are combined.- Parameters:
transletName- the translet nameabsolutely- whether to allow absolutely name for translet- Returns:
- the new translet name
-
doInitialize
protected void doInitialize()
- Specified by:
doInitializein classAbstractComponent
-
doDestroy
protected void doDestroy()
- Specified by:
doDestroyin classAbstractComponent
-
-