Class SerializedFactoryBean

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean<Object>, org.springframework.beans.factory.InitializingBean

    public class SerializedFactoryBean
    extends org.springframework.beans.factory.config.AbstractFactoryBean<Object>
    A Spring FactoryBean for instantiating a serialized object from a File.
    Author:
    bdferris
    • Constructor Detail

      • SerializedFactoryBean

        public SerializedFactoryBean()
    • Method Detail

      • setPath

        public void setPath​(File path)
      • setObjectType

        public void setObjectType​(Class<?> objectType)
      • setInitMethod

        public void setInitMethod​(String initMethod)
      • getObjectType

        public Class<?> getObjectType()
        Specified by:
        getObjectType in interface org.springframework.beans.factory.FactoryBean<Object>
        Specified by:
        getObjectType in class org.springframework.beans.factory.config.AbstractFactoryBean<Object>
      • createInstance

        protected Object createInstance()
                                 throws Exception
        Specified by:
        createInstance in class org.springframework.beans.factory.config.AbstractFactoryBean<Object>
        Throws:
        Exception