Package com.aspectran.embed.service
Interface EmbeddedAspectran
-
- All Superinterfaces:
CoreService
- All Known Implementing Classes:
AspectranEmbeddedService
public interface EmbeddedAspectran extends CoreService
The Interface EmbeddedAspectran.Created: 2017. 10. 28.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description SessionAdapter
newSessionAdapter()
Creates a new session adapter for the embedded aspectran and returns.void
release()
Stop the service and release all allocated resources.static EmbeddedAspectran
run(AspectranConfig aspectranConfig)
Creates and starts a new Aspectran Embedded Service.static EmbeddedAspectran
run(java.io.File aspectranConfigFile)
Creates and starts a new Aspectran Embedded Service.static EmbeddedAspectran
run(java.io.Reader configFileReader)
Creates and starts a new Aspectran Embedded Service.static EmbeddedAspectran
run(java.lang.String aspectranConfigFile)
Creates and starts a new Aspectran Embedded Service.java.lang.String
template(java.lang.String templateId)
Evaluate the template without any provided variables.java.lang.String
template(java.lang.String templateId, ParameterMap parameterMap)
Evaluate the template with a set of parameters.java.lang.String
template(java.lang.String templateId, ParameterMap parameterMap, java.util.Map<java.lang.String,java.lang.Object> attributeMap)
Evaluate the template with a set of parameters and a set of attributes.java.lang.String
template(java.lang.String templateId, java.util.Map<java.lang.String,java.lang.Object> attributeMap)
Evaluate the template with a set of parameters.Translet
translate(java.lang.String name)
Execute the translet.Translet
translate(java.lang.String name, ParameterMap parameterMap)
Execute the translet.Translet
translate(java.lang.String name, ParameterMap parameterMap, java.util.Map<java.lang.String,java.lang.Object> attributeMap)
Execute the translet.Translet
translate(java.lang.String name, MethodType method)
Execute the translet.Translet
translate(java.lang.String name, MethodType method, ParameterMap parameterMap)
Execute the translet.Translet
translate(java.lang.String name, MethodType method, ParameterMap parameterMap, java.util.Map<java.lang.String,java.lang.Object> attributeMap)
Execute the translet.Translet
translate(java.lang.String name, MethodType method, java.util.Map<java.lang.String,java.lang.Object> attributeMap)
Execute the translet.Translet
translate(java.lang.String name, java.util.Map<java.lang.String,java.lang.Object> attributeMap)
Execute the translet.-
Methods inherited from interface com.aspectran.core.service.CoreService
getActivityContext, getApplicationAdapter, getAspectranClassLoader, getAspectranConfig, getBasePath, getServiceController, isHardReload, isLateStart, joinDerivedService
-
-
-
-
Method Detail
-
newSessionAdapter
SessionAdapter newSessionAdapter()
Creates a new session adapter for the embedded aspectran and returns.- Returns:
- the session adapter
-
translate
Translet translate(java.lang.String name)
Execute the translet.- Parameters:
name
- the translet name- Returns:
- the
Translet
object
-
translate
Translet translate(java.lang.String name, ParameterMap parameterMap)
Execute the translet.- Parameters:
name
- the translet nameparameterMap
- the parameter map- Returns:
- the
Translet
object
-
translate
Translet translate(java.lang.String name, ParameterMap parameterMap, java.util.Map<java.lang.String,java.lang.Object> attributeMap)
Execute the translet.- Parameters:
name
- the translet nameparameterMap
- the parameter mapattributeMap
- the attribute map- Returns:
- the
Translet
object
-
translate
Translet translate(java.lang.String name, java.util.Map<java.lang.String,java.lang.Object> attributeMap)
Execute the translet.- Parameters:
name
- the translet nameattributeMap
- the attribute map- Returns:
- the
Translet
object
-
translate
Translet translate(java.lang.String name, MethodType method)
Execute the translet.- Parameters:
name
- the translet namemethod
- the request method- Returns:
- the
Translet
object
-
translate
Translet translate(java.lang.String name, MethodType method, ParameterMap parameterMap)
Execute the translet.- Parameters:
name
- the translet namemethod
- the request methodparameterMap
- the parameter map- Returns:
- the
Translet
object
-
translate
Translet translate(java.lang.String name, MethodType method, java.util.Map<java.lang.String,java.lang.Object> attributeMap)
Execute the translet.- Parameters:
name
- the translet namemethod
- the request methodattributeMap
- the attribute map- Returns:
- the
Translet
object
-
translate
Translet translate(java.lang.String name, MethodType method, ParameterMap parameterMap, java.util.Map<java.lang.String,java.lang.Object> attributeMap)
Execute the translet.- Parameters:
name
- the translet namemethod
- the request methodparameterMap
- the parameter mapattributeMap
- the attribute map- Returns:
- the
Translet
object
-
template
java.lang.String template(java.lang.String templateId)
Evaluate the template without any provided variables.- Parameters:
templateId
- the template id- Returns:
- the output string of the template
-
template
java.lang.String template(java.lang.String templateId, ParameterMap parameterMap)
Evaluate the template with a set of parameters.- Parameters:
templateId
- the template idparameterMap
- the parameter map- Returns:
- the output string of the template
-
template
java.lang.String template(java.lang.String templateId, java.util.Map<java.lang.String,java.lang.Object> attributeMap)
Evaluate the template with a set of parameters.- Parameters:
templateId
- the template idattributeMap
- the attribute map- Returns:
- the output string of the template
-
template
java.lang.String template(java.lang.String templateId, ParameterMap parameterMap, java.util.Map<java.lang.String,java.lang.Object> attributeMap)
Evaluate the template with a set of parameters and a set of attributes.- Parameters:
templateId
- the template idparameterMap
- the parameter mapattributeMap
- the attribute map- Returns:
- the output string of the template
-
release
void release()
Stop the service and release all allocated resources.
-
run
static EmbeddedAspectran run(java.lang.String aspectranConfigFile)
Creates and starts a new Aspectran Embedded Service.- Parameters:
aspectranConfigFile
- the aspectran configuration file- Returns:
- the instance of
EmbeddedService
-
run
static EmbeddedAspectran run(java.io.File aspectranConfigFile)
Creates and starts a new Aspectran Embedded Service.- Parameters:
aspectranConfigFile
- the aspectran configuration file- Returns:
- the instance of
EmbeddedService
-
run
static EmbeddedAspectran run(java.io.Reader configFileReader)
Creates and starts a new Aspectran Embedded Service.- Parameters:
configFileReader
- the aspectran configuration file reader- Returns:
- the instance of
EmbeddedService
-
run
static EmbeddedAspectran run(AspectranConfig aspectranConfig)
Creates and starts a new Aspectran Embedded Service.- Parameters:
aspectranConfig
- the parameters for aspectran configuration- Returns:
- the instance of
EmbeddedService
-
-