Component
, ActivityContext
public class AspectranActivityContext extends AbstractComponent implements ActivityContext
Created: 2008. 06. 09 PM 2:12:40
BASE_DIR_PROPERTY_NAME, DEFAULT_ENCODING, ID_SEPARATOR, ID_SEPARATOR_CHAR, LINE_SEPARATOR, MESSAGE_SOURCE_BEAN_ID, TRANSLET_NAME_SEPARATOR_CHAR
Constructor | Description |
---|---|
AspectranActivityContext(ContextEnvironment contextEnvironment) |
Instantiates a new AspectranActivityContext.
|
Modifier and Type | Method | Description |
---|---|---|
protected void |
doDestroy() |
|
protected void |
doInitialize() |
|
AspectRuleRegistry |
getAspectRuleRegistry() |
Gets the aspect rule registry.
|
BeanRegistry |
getBeanRegistry() |
Gets the bean registry.
|
Activity |
getCurrentActivity() |
Gets the current activity.
|
Activity |
getDefaultActivity() |
Gets the default activity.
|
java.lang.String |
getDescription() |
Gets the description of this ActivityContext.
|
Environment |
getEnvironment() |
Gets the context environment.
|
MessageSource |
getMessageSource() |
Gets the message source.
|
CoreService |
getRootService() |
Returns the Aspectran Service that created the current ActivityContext.
|
ScheduleRuleRegistry |
getScheduleRuleRegistry() |
Gets the schedule rule registry.
|
TemplateProcessor |
getTemplateProcessor() |
Gets the template processor.
|
TransletRuleRegistry |
getTransletRuleRegistry() |
Gets the translet rule registry.
|
void |
removeCurrentActivity() |
Removes the current activity.
|
void |
setAspectRuleRegistry(AspectRuleRegistry aspectRuleRegistry) |
|
void |
setContextBeanRegistry(ContextBeanRegistry contextBeanRegistry) |
Sets the context bean registry.
|
void |
setContextTemplateProcessor(ContextTemplateProcessor contextTemplateProcessor) |
Sets the template processor.
|
void |
setCurrentActivity(Activity activity) |
Sets the current activity.
|
void |
setDescription(java.lang.String description) |
|
void |
setRootService(CoreService rootService) |
Sets the Aspectran Service that created the current ActivityContext.
|
void |
setScheduleRuleRegistry(ScheduleRuleRegistry scheduleRuleRegistry) |
|
void |
setTransletRuleRegistry(TransletRuleRegistry transletRuleRegistry) |
Sets the translet rule registry.
|
destroy, getComponentName, initialize, isAvailable, isDestroyed, isInitialized
public AspectranActivityContext(ContextEnvironment contextEnvironment)
contextEnvironment
- the context environmentpublic java.lang.String getDescription()
ActivityContext
getDescription
in interface ActivityContext
public void setDescription(java.lang.String description)
public Environment getEnvironment()
ActivityContext
getEnvironment
in interface ActivityContext
public CoreService getRootService()
ActivityContext
getRootService
in interface ActivityContext
public void setRootService(CoreService rootService)
ActivityContext
setRootService
in interface ActivityContext
rootService
- the root servicepublic AspectRuleRegistry getAspectRuleRegistry()
ActivityContext
getAspectRuleRegistry
in interface ActivityContext
public void setAspectRuleRegistry(AspectRuleRegistry aspectRuleRegistry)
public BeanRegistry getBeanRegistry()
ActivityContext
getBeanRegistry
in interface ActivityContext
public void setContextBeanRegistry(ContextBeanRegistry contextBeanRegistry)
contextBeanRegistry
- the new context bean registrypublic TemplateProcessor getTemplateProcessor()
ActivityContext
getTemplateProcessor
in interface ActivityContext
public void setContextTemplateProcessor(ContextTemplateProcessor contextTemplateProcessor)
contextTemplateProcessor
- the new template processorpublic ScheduleRuleRegistry getScheduleRuleRegistry()
ActivityContext
getScheduleRuleRegistry
in interface ActivityContext
public void setScheduleRuleRegistry(ScheduleRuleRegistry scheduleRuleRegistry)
public TransletRuleRegistry getTransletRuleRegistry()
ActivityContext
getTransletRuleRegistry
in interface ActivityContext
public void setTransletRuleRegistry(TransletRuleRegistry transletRuleRegistry)
transletRuleRegistry
- the new translet rule registrypublic MessageSource getMessageSource()
ActivityContext
getMessageSource
in interface ActivityContext
public Activity getDefaultActivity()
ActivityContext
getDefaultActivity
in interface ActivityContext
public Activity getCurrentActivity()
ActivityContext
getCurrentActivity
in interface ActivityContext
public void setCurrentActivity(Activity activity)
ActivityContext
setCurrentActivity
in interface ActivityContext
activity
- the new current activitypublic void removeCurrentActivity()
ActivityContext
removeCurrentActivity
in interface ActivityContext
protected void doInitialize() throws java.lang.Exception
doInitialize
in class AbstractComponent
java.lang.Exception
protected void doDestroy()
doDestroy
in class AbstractComponent
Copyright © 2008–2018 The Aspectran Project. All rights reserved.