org.onebusaway.container.rotation
Class TimeRotationWriterFactoryBean

java.lang.Object
  extended by org.springframework.beans.factory.config.AbstractFactoryBean<RotationWriter>
      extended by org.onebusaway.container.rotation.TimeRotationWriterFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean<RotationWriter>, org.springframework.beans.factory.InitializingBean

public class TimeRotationWriterFactoryBean
extends org.springframework.beans.factory.config.AbstractFactoryBean<RotationWriter>

Spring FactoryBean to construct a RotationWriter with a TimeRotationStrategy. Specify the path property to set the output format/path for the TimeRotationStrategy.

Author:
bdferris

Field Summary
 
Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
logger
 
Constructor Summary
TimeRotationWriterFactoryBean()
           
 
Method Summary
protected  RotationWriter createInstance()
           
 Class<?> getObjectType()
           
 void setPath(String 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

TimeRotationWriterFactoryBean

public TimeRotationWriterFactoryBean()
Method Detail

setPath

public void setPath(String path)

getObjectType

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

createInstance

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


Copyright © 2012 OneBusAway. All Rights Reserved.