BeanRegistry
AbstractActivity
, BasicActivity
, CoreActivity
, DaemonActivity
, DefaultActivity
, EmbeddedActivity
, InstantActivity
, JobActivity
, SessionScopeActivity
, ShellActivity
, WebActivity
public interface Activity extends BeanRegistry
Created: 2008. 03. 22 PM 5:48:09
Modifier and Type | Method | Description |
---|---|---|
void |
executeAdvice(AspectAdviceRule aspectAdviceRule) |
Executes an aspect advice with a given rule.
|
void |
executeAdvice(java.util.List<AspectAdviceRule> aspectAdviceRuleList) |
Execute aspect advices with given rules.
|
void |
executeAdviceWithoutThrow(AspectAdviceRule aspectAdviceRule) |
Executes an aspect advice with a given rule and does not raise an exception.
|
void |
executeAdviceWithoutThrow(java.util.List<AspectAdviceRule> aspectAdviceRuleList) |
Execute aspect advices with given rules, and does not raise exceptions.
|
void |
finish() |
Finish the current activity.
|
ActivityContext |
getActivityContext() |
Gets the activity context.
|
ApplicationAdapter |
getApplicationAdapter() |
Gets the application adapter.
|
<T> T |
getAspectAdviceBean(java.lang.String aspectId) |
Gets the aspect advice bean.
|
BeanRegistry |
getBeanRegistry() |
Gets the bean registry.
|
Environment |
getEnvironment() |
Returns the environment of the current activity context.
|
ProcessResult |
getProcessResult() |
Returns the process result.
|
java.lang.Object |
getProcessResult(java.lang.String actionId) |
Returns an action result for the specified action id from the process result,
or
null if the action does not exist. |
java.lang.Throwable |
getRaisedException() |
Returns an instance of the currently raised exception.
|
RequestAdapter |
getRequestAdapter() |
Gets the request adapter.
|
MethodType |
getRequestMethod() |
Returns the request method.
|
ResponseAdapter |
getResponseAdapter() |
Gets the response adapter.
|
java.lang.Throwable |
getRootCauseOfRaisedException() |
Returns the innermost one of the chained (wrapped) exceptions.
|
SessionAdapter |
getSessionAdapter() |
Gets the session adapter.
|
<T> T |
getSetting(java.lang.String settingName) |
Gets the setting value in the translet scope.
|
TemplateProcessor |
getTemplateProcessor() |
Gets the template processor.
|
Translet |
getTranslet() |
Returns an instance of the current translet.
|
java.lang.String |
getTransletName() |
Returns the name of the current translet.
|
void |
handleException(java.util.List<ExceptionRule> exceptionRuleList) |
Exception handling.
|
boolean |
isExceptionRaised() |
Returns whether the exception was thrown.
|
boolean |
isResponseReserved() |
Returns whether the response is reserved.
|
<T extends Activity> |
newActivity() |
Create a new inner activity.
|
void |
perform() |
Performs the prepared activity.
|
void |
performWithoutResponse() |
Performs the prepared activity but does not respond to the client.
|
void |
prepare(TransletRule transletRule) |
Prepare for the activity.
|
void |
prepare(java.lang.String transletName) |
Prepare for the activity.
|
void |
prepare(java.lang.String transletName,
MethodType requestMethod) |
Prepare for the activity.
|
void |
prepare(java.lang.String transletName,
java.lang.String requestMethod) |
Prepare for the activity.
|
void |
registerAspectRule(AspectRule aspectRule) |
Register an aspect rule dynamically.
|
void |
setRaisedException(java.lang.Throwable raisedException) |
Sets an instance of the currently raised exception.
|
void |
terminate() |
Throws an ActivityTerminatedException to terminate the current activity.
|
void |
terminate(java.lang.String cause) |
Throws an ActivityTerminatedException with the reason for terminating the current activity.
|
containsBean, containsBean, getBean, getBean, getBean, getBean, getConfigBean
void prepare(java.lang.String transletName)
transletName
- the translet namevoid prepare(TransletRule transletRule)
transletRule
- the translet rulevoid prepare(java.lang.String transletName, java.lang.String requestMethod)
transletName
- the translet namerequestMethod
- the request methodvoid prepare(java.lang.String transletName, MethodType requestMethod)
transletName
- the translet namerequestMethod
- the request methodvoid perform()
void performWithoutResponse()
void finish()
void terminate()
ActivityTerminatedException
- if an activity terminated without completionvoid terminate(java.lang.String cause)
cause
- the termination causeActivityTerminatedException
- the exception to terminate activityMethodType getRequestMethod()
java.lang.String getTransletName()
Translet getTranslet()
ProcessResult getProcessResult()
java.lang.Object getProcessResult(java.lang.String actionId)
null
if the action does not exist.actionId
- the specified action idvoid executeAdvice(java.util.List<AspectAdviceRule> aspectAdviceRuleList)
aspectAdviceRuleList
- the aspect advice rulesvoid executeAdviceWithoutThrow(java.util.List<AspectAdviceRule> aspectAdviceRuleList)
aspectAdviceRuleList
- the aspect advice rulesvoid executeAdvice(AspectAdviceRule aspectAdviceRule)
aspectAdviceRule
- the aspect advice rulevoid executeAdviceWithoutThrow(AspectAdviceRule aspectAdviceRule)
aspectAdviceRule
- the aspect advice ruleboolean isResponseReserved()
void handleException(java.util.List<ExceptionRule> exceptionRuleList)
exceptionRuleList
- the exception rule listboolean isExceptionRaised()
java.lang.Throwable getRaisedException()
java.lang.Throwable getRootCauseOfRaisedException()
void setRaisedException(java.lang.Throwable raisedException)
raisedException
- an instance of the currently raised exceptionActivityContext getActivityContext()
Environment getEnvironment()
<T extends Activity> T newActivity()
T
- the type of the activityApplicationAdapter getApplicationAdapter()
SessionAdapter getSessionAdapter()
RequestAdapter getRequestAdapter()
ResponseAdapter getResponseAdapter()
BeanRegistry getBeanRegistry()
TemplateProcessor getTemplateProcessor()
<T> T getSetting(java.lang.String settingName)
T
- the type of the valuesettingName
- the setting namevoid registerAspectRule(AspectRule aspectRule)
aspectRule
- the aspect rule<T> T getAspectAdviceBean(java.lang.String aspectId)
T
- the type of the beanaspectId
- the aspect idCopyright © 2008–2018 The Aspectran Project. All rights reserved.