Class ContainerBuilderImpl

    • Constructor Detail

      • ContainerBuilderImpl

        public ContainerBuilderImpl()
    • Method Detail

      • terminate

        public void terminate​(org.jruby.embed.ScriptingContainer c)
        Specified by:
        terminate in interface ContainerBuilder
      • configure

        protected abstract org.jruby.embed.ScriptingContainer configure​(org.jruby.embed.ScriptingContainer c)
                                                                 throws CoreException
        Throws:
        CoreException
      • getContextScope

        public org.jruby.embed.LocalContextScope getContextScope()
        Returns:
        the contextScope
      • setContextScope

        public void setContextScope​(org.jruby.embed.LocalContextScope c)
        Set the context scope
        Parameters:
        c - the contextScope to set; default is LocalContextScope.THREADSAFE
      • withContextScope

        public <T extends ContainerBuilderImpl> T withContextScope​(org.jruby.embed.LocalContextScope s)
      • getVariableBehaviour

        public org.jruby.embed.LocalVariableBehavior getVariableBehaviour()
        Returns:
        the variableBehaviour
      • setVariableBehaviour

        public void setVariableBehaviour​(org.jruby.embed.LocalVariableBehavior b)
        Set the variable behaviour
        Parameters:
        b - the variableBehaviour to set; default is LocalVariableBehavior.TRANSIENT
      • withVariableBehaviour

        public <T extends ContainerBuilderImpl> T withVariableBehaviour​(org.jruby.embed.LocalVariableBehavior s)
      • getLoadPaths

        public java.util.List<java.lang.String> getLoadPaths()
        Returns:
        the loadPaths
      • setLoadPaths

        public void setLoadPaths​(java.util.List<java.lang.String> paths)
        Set any additional directories that need to be added via ScriptingContainer.setLoadPaths().
        Parameters:
        paths - the loadPaths to set
      • withLoadPaths

        public <T extends ContainerBuilderImpl> T withLoadPaths​(java.lang.String... strings)
      • getCompileMode

        public org.jruby.RubyInstanceConfig.CompileMode getCompileMode()
        Returns:
        the compileMode
      • setCompileMode

        public void setCompileMode​(org.jruby.RubyInstanceConfig.CompileMode m)
        Parameters:
        m - the compileMode to set; default is JIT
      • withCompileMode

        public <T extends ContainerBuilderImpl> T withCompileMode​(org.jruby.RubyInstanceConfig.CompileMode s)
      • getJrubyHome

        public java.lang.String getJrubyHome()
        Returns:
        the jrubyHomeDir
      • setJrubyHome

        public void setJrubyHome​(java.lang.String d)
        Parameters:
        d - the jrubyHomeDir to set