Class ScriptingServiceImp

    • Constructor Detail

      • ScriptingServiceImp

        public ScriptingServiceImp()
    • Method Detail

      • createReader

        protected abstract java.io.Reader createReader()
                                                throws java.io.IOException
        Throws:
        java.io.IOException
      • checkEngine

        protected final void checkEngine​(javax.script.ScriptEngineManager engineManager)
      • stop

        public void stop()
        Description copied from interface: ComponentLifecycle
        Stop the component

        A stopped component is not expected to be ready to process messages. In the case of AdaptrisMessageConsumer, calling stop will pause message delivery. Throwing a RuntimeException may cause unintended consequences

        Specified by:
        stop in interface ComponentLifecycle
        Overrides:
        stop in class ServiceImp
      • getLanguage

        public java.lang.String getLanguage()
      • setLanguage

        public void setLanguage​(java.lang.String s)
        Set the language the the script is written in.
        Parameters:
        s - a JSR223 supported language.
      • getBranchingEnabled

        public java.lang.Boolean getBranchingEnabled()
      • setBranchingEnabled

        public void setBranchingEnabled​(java.lang.Boolean branching)
        Specify whether or not this service is branching.
        Parameters:
        branching - true to cause isBranching() to return true; default is false.
        Since:
        3.4.0
        See Also:
        Service.isBranching()