org.onebusaway.container.spring
Class SerializedLazyCreationTargetSource

java.lang.Object
  extended by org.springframework.aop.target.AbstractLazyCreationTargetSource
      extended by org.onebusaway.container.spring.SerializedLazyCreationTargetSource
All Implemented Interfaces:
org.springframework.aop.TargetClassAware, org.springframework.aop.TargetSource

public class SerializedLazyCreationTargetSource
extends org.springframework.aop.target.AbstractLazyCreationTargetSource

A Spring FactoryBean for lazily instantiating a serialized bean from a file as needed

Author:
bdferris

Field Summary
 
Fields inherited from class org.springframework.aop.target.AbstractLazyCreationTargetSource
logger
 
Constructor Summary
SerializedLazyCreationTargetSource()
           
 
Method Summary
protected  Object createObject()
           
 void setInitMethod(String method)
           
 void setPath(File path)
           
 
Methods inherited from class org.springframework.aop.target.AbstractLazyCreationTargetSource
getTarget, getTargetClass, isInitialized, isStatic, releaseTarget
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerializedLazyCreationTargetSource

public SerializedLazyCreationTargetSource()
Method Detail

setPath

public void setPath(File path)

setInitMethod

public void setInitMethod(String method)

createObject

protected Object createObject()
                       throws Exception
Specified by:
createObject in class org.springframework.aop.target.AbstractLazyCreationTargetSource
Throws:
Exception


Copyright © 2011 OneBusAway. All Rights Reserved.