org.onebusaway.container.spring
Class SerializedFactoryBean

java.lang.Object
  extended by org.springframework.beans.factory.config.AbstractFactoryBean
      extended by org.onebusaway.container.spring.SerializedFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean

public class SerializedFactoryBean
extends org.springframework.beans.factory.config.AbstractFactoryBean

A Spring FactoryBean for instantiating a serialized object from a File.

Author:
bdferris

Field Summary
 
Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
logger
 
Constructor Summary
SerializedFactoryBean()
           
 
Method Summary
protected  Object createInstance()
           
 Class<?> getObjectType()
           
 void setInitMethod(String initMethod)
           
 void setObjectType(Class<?> objectType)
           
 void setPath(File path)
           
 
Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
afterPropertiesSet, destroy, destroyInstance, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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
Specified by:
getObjectType in class org.springframework.beans.factory.config.AbstractFactoryBean

createInstance

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


Copyright © 2011 OneBusAway. All Rights Reserved.