org.onebusaway.federations
Class FederatedServiceFactoryBean

java.lang.Object
  extended by org.springframework.beans.factory.config.AbstractFactoryBean<Object>
      extended by org.onebusaway.federations.FederatedServiceFactoryBean
All Implemented Interfaces:
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 FederatedServiceFactoryBean
extends org.springframework.beans.factory.config.AbstractFactoryBean<Object>

A Spring FactoryBean for creating a proxied service interface that virtually dispatches to a set of FederatedService instances, as contained by a FederatedServiceCollection.

 
   
   
 
 

Author:
bdferris
See Also:
FederatedService, FederatedServiceCollection

Field Summary
 
Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
logger
 
Constructor Summary
FederatedServiceFactoryBean()
           
 
Method Summary
protected  Object createInstance()
           
 Class<?> getObjectType()
           
 void setCollection(FederatedServiceCollection collection)
           
 void setServiceInterface(Class<?> serviceInterface)
           
 
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

FederatedServiceFactoryBean

public FederatedServiceFactoryBean()
Method Detail

setServiceInterface

public void setServiceInterface(Class<?> serviceInterface)

setCollection

public void setCollection(FederatedServiceCollection collection)

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


Copyright © 2011 OneBusAway. All Rights Reserved.