Package com.aspectran.embed.service
Class DefaultEmbeddedAspectran
java.lang.Object
com.aspectran.core.service.AbstractServiceController
com.aspectran.core.service.AbstractCoreService
com.aspectran.core.service.AspectranCoreService
com.aspectran.embed.service.AbstractEmbeddedAspectran
com.aspectran.embed.service.DefaultEmbeddedAspectran
- All Implemented Interfaces:
CoreService
,ServiceController
,EmbeddedAspectran
Provides an interface that can be used by embedding Aspectran in Java applications.
- Since:
- 3.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<V> V
execute
(InstantAction<V> instantAction) Executes an instant activity.Renders the template without the supplied variables.render
(String templateId, ParameterMap parameterMap) Renders the template with the given parameters.Renders the template with the given attributes.Renders the template with the given attributes and parameters.Executes the translet.translate
(String name, ParameterMap parameterMap) Executes the translet with the given parameters.translate
(String name, MethodType method) Executes the translet without the supplied variables.translate
(String name, MethodType method, ParameterMap parameterMap) Executes the translet with the given parameters.Executes the translet with the given attributes.translate
(String name, MethodType method, Map<String, Object> attributeMap, ParameterMap parameterMap) Executes the translet with the given attributes and parameters.translate
(String name, MethodType method, Map<String, Object> attributeMap, ParameterMap parameterMap, String body) Executes the translet with the given attributes and parameters.Executes the translet.Executes the translet with the given parameters.Executes the translet with the given attributes and parameters.Methods inherited from class com.aspectran.embed.service.AbstractEmbeddedAspectran
containsBean, containsBean, containsBean, createSessionManager, destroySessionManager, getApplicationAdapter, getBean, getBean, getBean, getEnvironment, getMessage, getMessage, isExposable, newSessionAdapter, release
Methods inherited from class com.aspectran.core.service.AspectranCoreService
afterContextLoaded, beforeContextDestroy, buildActivityContext, configure, configure, destroyActivityContext, doPause, doPause, doResume, doStart, doStop, start, stop
Methods inherited from class com.aspectran.core.service.AbstractCoreService
checkDirectoryStructure, createSchedulerService, getActivityContext, getActivityContextBuilder, getAltClassLoader, getAspectranConfig, getBasePath, getDefaultActivity, getSchedulerService, getServiceClassLoader, getServiceController, hasActivityContextBuilder, hasServiceClassLoader, isDerived, isHardReload, isLateStart, joinDerivedService, leaveFromRootService, setActivityContext, setActivityContextBuilder, setAltClassLoader, setAspectranConfig, setBasePath, setServiceClassLoader, withdrawDerivedService
Methods inherited from class com.aspectran.core.service.AbstractServiceController
clearDerivedService, getLock, getRootService, getServiceName, isActive, isBusy, joinDerivedService, pause, pause, restart, restart, resume, setExposals, setRootService, setServiceStateListener, withdrawDerivedService
-
Constructor Details
-
DefaultEmbeddedAspectran
public DefaultEmbeddedAspectran()
-
-
Method Details
-
execute
Description copied from interface:EmbeddedAspectran
Executes an instant activity.- Parameters:
instantAction
- the instant action- Returns:
- An object that is the result of performing an instant activity
-
translate
Description copied from interface:EmbeddedAspectran
Executes the translet.- Parameters:
name
- the translet name- Returns:
- the
Translet
object
-
translate
Description copied from interface:EmbeddedAspectran
Executes the translet.- Parameters:
name
- the translet namebody
- the request body- Returns:
- the
Translet
object
-
translate
Description copied from interface:EmbeddedAspectran
Executes the translet with the given parameters.- Parameters:
name
- the translet nameattributeMap
- the attribute map- Returns:
- the
Translet
object
-
translate
Description copied from interface:EmbeddedAspectran
Executes the translet with the given parameters.- Parameters:
name
- the translet nameparameterMap
- the parameter map- Returns:
- the
Translet
object
-
translate
Description copied from interface:EmbeddedAspectran
Executes the translet with the given attributes and parameters.- Parameters:
name
- the translet nameattributeMap
- the attribute mapparameterMap
- the parameter map- Returns:
- the
Translet
object
-
translate
Description copied from interface:EmbeddedAspectran
Executes the translet without the supplied variables.- Parameters:
name
- the translet namemethod
- the request method- Returns:
- the
Translet
object
-
translate
Description copied from interface:EmbeddedAspectran
Executes the translet with the given attributes.- Parameters:
name
- the translet namemethod
- the request methodattributeMap
- the attribute map- Returns:
- the
Translet
object
-
translate
Description copied from interface:EmbeddedAspectran
Executes the translet with the given parameters.- Parameters:
name
- the translet namemethod
- the request methodparameterMap
- the parameter map- Returns:
- the
Translet
object
-
translate
public Translet translate(String name, MethodType method, Map<String, Object> attributeMap, ParameterMap parameterMap) Description copied from interface:EmbeddedAspectran
Executes the translet with the given attributes and parameters.- Parameters:
name
- the translet namemethod
- the request methodattributeMap
- the attribute mapparameterMap
- the parameter map- Returns:
- the
Translet
object
-
translate
public Translet translate(String name, @Nullable MethodType method, @Nullable Map<String, Object> attributeMap, @Nullable ParameterMap parameterMap, @Nullable String body) Description copied from interface:EmbeddedAspectran
Executes the translet with the given attributes and parameters.- Parameters:
name
- the translet namemethod
- the request methodattributeMap
- the attribute mapparameterMap
- the parameter mapbody
- the request body- Returns:
- the
Translet
object
-
render
Description copied from interface:EmbeddedAspectran
Renders the template without the supplied variables.- Parameters:
templateId
- the template id- Returns:
- the output string of the template
-
render
Description copied from interface:EmbeddedAspectran
Renders the template with the given attributes.- Parameters:
templateId
- the template idattributeMap
- the attribute map- Returns:
- the output string of the template
-
render
Description copied from interface:EmbeddedAspectran
Renders the template with the given parameters.- Parameters:
templateId
- the template idparameterMap
- the parameter map- Returns:
- the output string of the template
-
render
Description copied from interface:EmbeddedAspectran
Renders the template with the given attributes and parameters.- Parameters:
templateId
- the template idattributeMap
- the attribute mapparameterMap
- the parameter map- Returns:
- the output string of the template
-