Package com.aspectran.core.activity
Class NonActivity
- java.lang.Object
-
- com.aspectran.core.activity.AbstractActivity
-
- com.aspectran.core.activity.AdviceActivity
-
- com.aspectran.core.activity.CoreActivity
-
- com.aspectran.core.activity.NonActivity
-
- All Implemented Interfaces:
Activity
public class NonActivity extends CoreActivity
This is an activity that does nothing, and is mainly used for unit testing.
-
-
Constructor Summary
Constructors Constructor Description NonActivity(ActivityContext context)
Instantiates a new NonActivity.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RequestAdapter
getRequestAdapter()
Gets the request adapter.<V> V
perform(InstantAction<V> instantAction)
Performs the given instant activity.-
Methods inherited from class com.aspectran.core.activity.CoreActivity
adapt, execute, execute, getDeclaredResponse, getDesiredResponse, getIntendedRequestEncoding, getIntendedResponseEncoding, getProcessResult, getProcessResult, getRequestRule, getResponseRule, getTranslet, getTransletRule, handleException, isResponseReserved, parseDeclaredAttributes, parseDeclaredParameters, parseRequest, perform, prepare, prepare, prepare, prepare, prepare, release, reserveResponse, reserveResponse, resolveLocale
-
Methods inherited from class com.aspectran.core.activity.AdviceActivity
executeAdvice, executeAdvice, getAfterAdviceResult, getAfterAdviceRuleList, getAroundAdviceResult, getAspectAdviceBean, getBeforeAdviceResult, getBeforeAdviceRuleList, getExceptionRuleList, getFinallyAdviceResult, getFinallyAdviceRuleList, getSetting, handleException, prepareAspectAdviceRule, putAdviceResult, putAspectAdviceBean, putSetting, registerAspectAdviceRule, registerSettingsAdviceRule, setCurrentAspectAdviceType
-
Methods inherited from class com.aspectran.core.activity.AbstractActivity
clearRaisedException, containsBean, containsBean, containsBean, getActivityContext, getApplicationAdapter, getBean, getBean, getBean, getCurrentActivity, getEnvironment, getParentActivity, getPrototypeScopeBean, getRaisedException, getResponseAdapter, getRootCauseOfRaisedException, getSessionAdapter, hasParentActivity, isExceptionRaised, removeCurrentActivity, saveCurrentActivity, setRaisedException, setRequestAdapter, setResponseAdapter, setSessionAdapter, terminate, terminate
-
-
-
-
Constructor Detail
-
NonActivity
public NonActivity(ActivityContext context)
Instantiates a new NonActivity.- Parameters:
context
- the activity context
-
-
Method Detail
-
getRequestAdapter
public RequestAdapter getRequestAdapter()
Description copied from interface:Activity
Gets the request adapter.- Specified by:
getRequestAdapter
in interfaceActivity
- Overrides:
getRequestAdapter
in classAbstractActivity
- Returns:
- the request adapter
-
perform
public <V> V perform(InstantAction<V> instantAction) throws ActivityPerformException
Description copied from interface:Activity
Performs the given instant activity.- Specified by:
perform
in interfaceActivity
- Overrides:
perform
in classCoreActivity
- Type Parameters:
V
- the result type of the instant action- Parameters:
instantAction
- the instant action- Returns:
- An object that is the result of performing an instant activity
- Throws:
ActivityPerformException
- thrown when an exception occurs while performing an activity
-
-