org.onebusaway.container.spring
Class ProxyFactoryBean

java.lang.Object
  extended by org.springframework.beans.factory.config.AbstractFactoryBean<Object>
      extended by org.onebusaway.container.spring.ProxyFactoryBean
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 ProxyFactoryBean
extends org.springframework.beans.factory.config.AbstractFactoryBean<Object>

A Spring FactoryBean for instantiating a Proxy instance with a specified target interface type and a InvocationHandler.

Author:
bdferris

Field Summary
 
Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
logger
 
Constructor Summary
ProxyFactoryBean()
           
 
Method Summary
protected  Object createInstance()
           
 Class<?> getObjectType()
           
 void setInvocationHandler(InvocationHandler invocationHandler)
           
 void setProxyInterface(Class<?> proxyInterface)
           
 
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

ProxyFactoryBean

public ProxyFactoryBean()
Method Detail

setProxyInterface

public void setProxyInterface(Class<?> proxyInterface)

setInvocationHandler

public void setInvocationHandler(InvocationHandler invocationHandler)

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 © 2012 OneBusAway. All Rights Reserved.