|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.elca.el4j.services.remoting.AbstractRemotingProtocol
public abstract class AbstractRemotingProtocol
This abstract class defines a base for remote protocols. It contains basically the host name and port number.
Field Summary | |
---|---|
protected ApplicationContext |
m_parentApplicationContext
With this ApplicationContext the current bean has been created. |
Constructor Summary | |
---|---|
AbstractRemotingProtocol()
|
Method Summary | |
---|---|
void |
checkRemotingExporter(RemotingServiceExporter serviceExporter)
Checks whether the service exporter is configured properly to be used with this protocol. |
void |
checkRemotingProxy(RemotingProxyFactoryBean proxyFactory)
Checks whether the proxy factory is configured properly to be used with this protocol. |
abstract Object |
createExporterBean(RemotingServiceExporter exporterBean,
Class serviceInterfaceWithContext,
Object serviceProxy)
Method to create the exporter bean. |
abstract Object |
createProxyBean(RemotingProxyFactoryBean proxyBean,
Class serviceInterfaceWithContext)
Method to create the proxy bean. |
void |
destroy()
Destroys the child app contexts if they are disposable. |
void |
finalizeExporterDependentBeans(RemotingServiceExporter exporterBean)
This method will be used to finalize the preinstantiated beans, which depends on the exporter bean. |
Set<ApplicationContext> |
getChlidApplicationContexts()
|
ClientContextInvocationHandler |
getClientContextInvocationHandler(Object innerProxyBean,
Class serviceInterfaceWithContext)
Creates a invocation handler used on the client proxy. |
abstract Class |
getExporterObjectType()
Method to get the class type of the exporter object. |
ImplicitContextPassingRegistry |
getImplicitContextPassingRegistry()
|
ProtocolSpecificConfiguration |
getProtocolSpecificConfiguration()
|
boolean |
getProtocolSpecificContextPassing()
Does this protocol handle context passing on its own? |
Class[] |
getProxyInterface(Class serviceInterface)
Defines the interface implemented by the Proxy that wraps the enriched service interface. |
abstract Class |
getProxyObjectType()
Method to get the class type of the proxy object. |
boolean |
isDoNotForcePreInstantiationOfExporterObject()
|
void |
prepareExporterDependentBeans(RemotingServiceExporter exporterBean)
This method will be called to preinstantiate beans, which depends on the exporter bean. |
protected boolean |
registerChildApplicationContext(ApplicationContext applicationContext)
Registers the given app context as child. |
void |
setApplicationContext(ApplicationContext applicationContext)
|
void |
setDoNotForcePreInstantiationOfExporterObject(boolean doNotForcePreInstantiationOfExporterObject)
If it is set to true , the exporter object (if singleton),
will not be pre-instantiated. |
void |
setImplicitContextPassingRegistry(ImplicitContextPassingRegistry implicitContextPassingRegistry)
|
void |
setProtocolSpecificConfiguration(ProtocolSpecificConfiguration protocolSpecificConfiguration)
|
void |
setProtocolSpecificContextPassing(boolean protocolSpecificContextPassing)
Set if this protocol should handle the context passing on its own. |
protected boolean |
unregisterChildApplicationContext(ApplicationContext applicationContext)
Unregisters the given app context as child. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.springframework.beans.factory.InitializingBean |
---|
afterPropertiesSet |
Field Detail |
---|
protected ApplicationContext m_parentApplicationContext
Constructor Detail |
---|
public AbstractRemotingProtocol()
Method Detail |
---|
public boolean getProtocolSpecificContextPassing()
public void setProtocolSpecificContextPassing(boolean protocolSpecificContextPassing)
protocolSpecificContextPassing
- Should the context be handled?public ImplicitContextPassingRegistry getImplicitContextPassingRegistry()
public void setImplicitContextPassingRegistry(ImplicitContextPassingRegistry implicitContextPassingRegistry)
implicitContextPassingRegistry
- The implicitContextPassingRegistry to set.public ProtocolSpecificConfiguration getProtocolSpecificConfiguration()
public void setProtocolSpecificConfiguration(ProtocolSpecificConfiguration protocolSpecificConfiguration)
protocolSpecificConfiguration
- The protocolSpecificConfiguration to set.public abstract Object createProxyBean(RemotingProxyFactoryBean proxyBean, Class serviceInterfaceWithContext)
proxyBean
- Is the bean where the method gets information about the proxy
bean.serviceInterfaceWithContext
- Is the modified interface.
public abstract Object createExporterBean(RemotingServiceExporter exporterBean, Class serviceInterfaceWithContext, Object serviceProxy)
exporterBean
- Is the bean where the method gets information about the
exporter bean.serviceInterfaceWithContext
- Is the modified interface.serviceProxy
- Is the bean which has to wrapped.
public abstract Class getProxyObjectType()
public abstract Class getExporterObjectType()
public void prepareExporterDependentBeans(RemotingServiceExporter exporterBean)
exporterBean
- Is the reference to the dependent bean.public void finalizeExporterDependentBeans(RemotingServiceExporter exporterBean)
exporterBean
- Is the reference to the dependent bean.public void setApplicationContext(ApplicationContext applicationContext)
setApplicationContext
in interface ApplicationContextAware
public Class[] getProxyInterface(Class serviceInterface)
serviceInterface
- The service interface to wrap.
public ClientContextInvocationHandler getClientContextInvocationHandler(Object innerProxyBean, Class serviceInterfaceWithContext)
innerProxyBean
- The inner proxy to wrap.serviceInterfaceWithContext
- The inner proxy's interface.
public void checkRemotingExporter(RemotingServiceExporter serviceExporter) throws Exception
serviceExporter
- The remoting service exporter that is using this protocol.
Exception
- Whenever something goes wrong.public void checkRemotingProxy(RemotingProxyFactoryBean proxyFactory) throws Exception
proxyFactory
- The remoting proxy factory that is using this protocol.
Exception
- Whenever something goes wrong.public void destroy() throws Exception
destroy
in interface DisposableBean
Exception
protected boolean registerChildApplicationContext(ApplicationContext applicationContext)
applicationContext
- To register.
true
if registration was successfully.protected boolean unregisterChildApplicationContext(ApplicationContext applicationContext)
applicationContext
- To unregister.
true
if unregistration was successfully.public Set<ApplicationContext> getChlidApplicationContexts()
public boolean isDoNotForcePreInstantiationOfExporterObject()
public void setDoNotForcePreInstantiationOfExporterObject(boolean doNotForcePreInstantiationOfExporterObject)
true
, the exporter object (if singleton),
will not be pre-instantiated. By default singleton exporter objects
will be pre-instantiated.
doNotForcePreInstantiationOfExporterObject
- Is the doNotForcePreInstantiationOfExporterObject to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |