Class RuntimeManagerFactoryBean

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware

    public class RuntimeManagerFactoryBean
    extends Object
    implements org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware
    FactoryBean responsible to create instances of RuntimeManager of given type based on provided runtimeEnvironment (which is a mandatory property). Supported types:
    • SINGLETON
    • PER_REQUEST
    • PER_PROCESS_INSTANCE
    where default is SINGLETON when no type is specified.
    Every runtime manager must be uniquely identified thus identifier is a mandatory property.
    All instances created by this factory are cached to be able to properly dispose them using destroy method (close()).
    • Constructor Detail

      • RuntimeManagerFactoryBean

        public RuntimeManagerFactoryBean()
    • Method Detail

      • getObject

        public Object getObject()
                         throws Exception
        Specified by:
        getObject in interface org.springframework.beans.factory.FactoryBean
        Throws:
        Exception
      • getObjectType

        public Class<?> getObjectType()
        Specified by:
        getObjectType in interface org.springframework.beans.factory.FactoryBean
      • isSingleton

        public boolean isSingleton()
        Specified by:
        isSingleton in interface org.springframework.beans.factory.FactoryBean
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws Exception
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        Exception
      • getRuntimeEnvironment

        public org.kie.api.runtime.manager.RuntimeEnvironment getRuntimeEnvironment()
      • setRuntimeEnvironment

        public void setRuntimeEnvironment​(org.kie.api.runtime.manager.RuntimeEnvironment runtimeEnvironment)
      • getIdentifier

        public String getIdentifier()
      • setIdentifier

        public void setIdentifier​(String identifier)
      • getType

        public String getType()
      • setType

        public void setType​(String type)
      • close

        public void close()
      • setApplicationContext

        public void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)
                                   throws org.springframework.beans.BeansException
        Specified by:
        setApplicationContext in interface org.springframework.context.ApplicationContextAware
        Throws:
        org.springframework.beans.BeansException
      • disallowSharedTaskService

        protected void disallowSharedTaskService​(org.kie.api.runtime.manager.RuntimeEnvironment environment)