org.clazzes.remoting.beans
Class SpringBeanImporter

java.lang.Object
  extended by org.clazzes.remoting.beans.BeanImporter
      extended by org.clazzes.remoting.beans.SpringBeanImporter
All Implemented Interfaces:
Initializable, org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean

public class SpringBeanImporter
extends BeanImporter
implements org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean

This class adapt our BeanImporter implementation to spring's FactoryBean interface. In order to use this class you need to use the optional spring dependency.

Author:
wglas

Constructor Summary
SpringBeanImporter()
           
 
Method Summary
 void afterPropertiesSet()
           
 java.lang.Object getObject()
           
 java.lang.Class getObjectType()
           
 boolean isSingleton()
           
 
Methods inherited from class org.clazzes.remoting.beans.BeanImporter
getCallbackWrappers, getClientManager, getProxy, getReturnCallbackProxyFactory, getServiceInterface, getSubSystem, initialize, isInitialized, setCallbackWrappers, setClientManager, setReturnCallbackProxyFactory, setServiceInterface, setSubSystem
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpringBeanImporter

public SpringBeanImporter()
Method Detail

getObject

public java.lang.Object getObject()
                           throws java.lang.Exception
Specified by:
getObject in interface org.springframework.beans.factory.FactoryBean
Throws:
java.lang.Exception

getObjectType

public java.lang.Class getObjectType()
Specified by:
getObjectType in interface org.springframework.beans.factory.FactoryBean

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in interface org.springframework.beans.factory.FactoryBean

afterPropertiesSet

public void afterPropertiesSet()
                        throws java.lang.Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
java.lang.Exception


Copyright © 2010. All Rights Reserved.