Class ScriptingServiceImp
java.lang.Object
com.adaptris.core.ServiceImp
com.adaptris.core.scripting.services.ScriptingServiceImp
- All Implemented Interfaces:
AdaptrisComponent,ComponentLifecycle,ComponentLifecycleExtension,ConfigComment,DynamicPollingTemplate.TemplateProvider,MessageEventGenerator,Service,StateManagedComponent
- Direct Known Subclasses:
EmbeddedScriptingService,ScriptingService
public abstract class ScriptingServiceImp
extends ServiceImp
implements DynamicPollingTemplate.TemplateProvider
Base class for enabling JSR223 enabled scripting languages.
-
Field Summary
Fields inherited from class com.adaptris.core.ServiceImp
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected abstract Readerfinal voiddoService(AdaptrisMessage msg) Specify whether or not this service is branching so it can be used as part of aBranchingServiceCollection.@NonNull StringSet the JSR223 language the the script is written in.protected voidbooleanvoidprepare()voidsetBranchingEnabled(Boolean branchingEnabled) Specify whether or not this service is branching so it can be used as part of aBranchingServiceCollection.voidsetLanguage(@NonNull String language) Set the JSR223 language the the script is written in.Methods inherited from class com.adaptris.core.ServiceImp
changeState, close, continueOnFailure, createName, createQualifier, enabled, getComments, getContinueOnFail, getEnabled, getIsTrackingEndpoint, getUniqueId, init, isTrackingEndpoint, requestClose, requestInit, requestStart, requestStop, retrieveComponentState, setComments, setContinueOnFail, setEnabled, setIsTrackingEndpoint, setUniqueId, start, stopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.adaptris.core.AdaptrisComponent
getUniqueIdMethods inherited from interface com.adaptris.core.ComponentLifecycle
close, init, start, stopMethods inherited from interface com.adaptris.core.ConfigComment
getComments, setCommentsMethods inherited from interface com.adaptris.core.MessageEventGenerator
createName, createQualifier, isTrackingEndpointMethods inherited from interface com.adaptris.core.Service
continueOnFailure, enabled, setUniqueIdMethods inherited from interface com.adaptris.core.StateManagedComponent
changeState, requestClose, requestInit, requestStart, requestStop, retrieveComponentState
-
Constructor Details
-
ScriptingServiceImp
public ScriptingServiceImp()
-
-
Method Details
-
doService
- Specified by:
doServicein interfaceService- Throws:
ServiceException
-
createReader
- Throws:
IOException
-
initService
- Specified by:
initServicein classServiceImp- Throws:
CoreException
-
closeService
protected void closeService()- Specified by:
closeServicein classServiceImp
-
prepare
- Specified by:
preparein interfaceComponentLifecycleExtension- Throws:
CoreException
-
isBranching
public boolean isBranching()- Specified by:
isBranchingin interfaceService- Overrides:
isBranchingin classServiceImp
-
getLanguage
Set the JSR223 language the the script is written in.Depending on the language choice, you may need additional libraries that are not normally shipped with a standard Interlok distribution.
-
setLanguage
Set the JSR223 language the the script is written in.Depending on the language choice, you may need additional libraries that are not normally shipped with a standard Interlok distribution.
-
getBranchingEnabled
Specify whether or not this service is branching so it can be used as part of aBranchingServiceCollection. -
setBranchingEnabled
Specify whether or not this service is branching so it can be used as part of aBranchingServiceCollection.
-