org.clazzes.remoting.beans
Class BeanImporter

java.lang.Object
  extended by org.clazzes.remoting.beans.BeanImporter
All Implemented Interfaces:
Initializable
Direct Known Subclasses:
SpringBeanImporter

public class BeanImporter
extends java.lang.Object
implements Initializable

Imports a service exported by BeanInvocationHandler via remoting.

Author:
wglas

Constructor Summary
BeanImporter()
           
 
Method Summary
 java.util.List<CallbackWrapper> getCallbackWrappers()
           
 ClientManager getClientManager()
           
 java.lang.Object getProxy()
           
 ReturnCallbackProxyFactory getReturnCallbackProxyFactory()
           
 java.lang.Class<?> getServiceInterface()
           
 java.lang.String getSubSystem()
           
 void initialize()
          Initialize the internal state of this bean.
 boolean isInitialized()
           
 void setCallbackWrappers(java.util.List<CallbackWrapper> callbackHandlers)
           
 void setClientManager(ClientManager clientManager)
           
 void setReturnCallbackProxyFactory(ReturnCallbackProxyFactory returnCallbackProxyFactory)
           
 void setServiceInterface(java.lang.Class<?> serviceInterface)
           
 void setSubSystem(java.lang.String subSystem)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanImporter

public BeanImporter()
Method Detail

isInitialized

public boolean isInitialized()
Specified by:
isInitialized in interface Initializable
Returns:
Whether this bean needs to be initialized using Initializable.initialize().

initialize

public void initialize()
                throws java.lang.Exception
Description copied from interface: Initializable
Initialize the internal state of this bean.

Specified by:
initialize in interface Initializable
Throws:
java.lang.Exception - Upon errors.

getProxy

public java.lang.Object getProxy()
Returns:
The proxy, which has been set up in initialize().

getClientManager

public ClientManager getClientManager()
Returns:
the clientManager

setClientManager

public void setClientManager(ClientManager clientManager)
Parameters:
clientManager - the clientManager to set

getSubSystem

public java.lang.String getSubSystem()
Returns:
the jboss remoting subsystem.
See Also:
Client#setSubsystem(String)

setSubSystem

public void setSubSystem(java.lang.String subSystem)
Parameters:
subSystem - the subSystem to set

getServiceInterface

public java.lang.Class<?> getServiceInterface()
Returns:
the service interface implemented by the proxy.

setServiceInterface

public void setServiceInterface(java.lang.Class<?> serviceInterface)
Parameters:
serviceInterface - the serviceInterface to set.

getCallbackWrappers

public java.util.List<CallbackWrapper> getCallbackWrappers()
Returns:
the callbackHandlers

setCallbackWrappers

public void setCallbackWrappers(java.util.List<CallbackWrapper> callbackHandlers)
Parameters:
callbackHandlers - the callbackHandlers to set

getReturnCallbackProxyFactory

public ReturnCallbackProxyFactory getReturnCallbackProxyFactory()
Returns:
the returnCallbackProxyFactory

setReturnCallbackProxyFactory

public void setReturnCallbackProxyFactory(ReturnCallbackProxyFactory returnCallbackProxyFactory)
Parameters:
returnCallbackProxyFactory - the returnCallbackProxyFactory to set


Copyright © 2010. All Rights Reserved.