ch.elca.el4j.services.remoting
Class RemotingServiceExporter

java.lang.Object
  extended by ch.elca.el4j.services.remoting.AbstractRemotingBase
      extended by ch.elca.el4j.services.remoting.RemotingServiceExporter
All Implemented Interfaces:
BeanNameAware, FactoryBean, InitializingBean, ApplicationContextAware

public class RemotingServiceExporter
extends AbstractRemotingBase
implements FactoryBean, BeanNameAware, ApplicationContextAware

This class is the global remote service exporter bean.

Author:
Martin Zeltner (MZE)
File-location:
RemotingServiceExporter
Last check-in date:
2009-08-04 15:35:01 +0200 (Di, 04. Aug 2009) by swismer for revision 3883

Field Summary
 
Fields inherited from class ch.elca.el4j.services.remoting.AbstractRemotingBase
SERVICE_NAME_SUFFIX
 
Constructor Summary
RemotingServiceExporter()
           
 
Method Summary
 void afterPropertiesSet()
          
 ApplicationContext getApplicationContext()
           
 String getBeanName()
           
protected  Object getFreshExporterBean()
          Creates a fresh exporter bean wraps a potentially enriched service interface.
 Object getObject()
          
 Class getObjectType()
          
 String getService()
           
 Class getServiceInterfaceWithContext(Class serviceInterface)
          Lazily enriches the service's interface, adding the implicit context passing stuff.
 boolean isSingleton()
          
 void setApplicationContext(ApplicationContext applicationContext)
          
 void setBeanName(String name)
          
 void setService(String service)
          Sets the service's bean name.
 void setSingleton(boolean singleton)
          Sets whether the objects returned by the factory are singltons or prototypes.
 
Methods inherited from class ch.elca.el4j.services.remoting.AbstractRemotingBase
getProtocolSpecificConfiguration, getRemoteProtocol, getServiceInterface, getServiceName, setProtocolSpecificConfiguration, setRemoteProtocol, setServiceInterface, setServiceName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemotingServiceExporter

public RemotingServiceExporter()
Method Detail

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception

Specified by:
afterPropertiesSet in interface InitializingBean
Overrides:
afterPropertiesSet in class AbstractRemotingBase
Throws:
Exception

getServiceInterfaceWithContext

public Class getServiceInterfaceWithContext(Class serviceInterface)
Lazily enriches the service's interface, adding the implicit context passing stuff.

Parameters:
serviceInterface - The interface to enrich.
Returns:
Returns the enriched class.

getFreshExporterBean

protected Object getFreshExporterBean()
Creates a fresh exporter bean wraps a potentially enriched service interface.

Returns:
Returns the exporter bean.

getObject

public Object getObject()
                 throws Exception

Specified by:
getObject in interface FactoryBean
Throws:
Exception

getObjectType

public Class getObjectType()

Specified by:
getObjectType in interface FactoryBean

setSingleton

public void setSingleton(boolean singleton)
Sets whether the objects returned by the factory are singltons or prototypes. Default is singletons.

Parameters:
singleton - true for returning singletons.

isSingleton

public boolean isSingleton()

Specified by:
isSingleton in interface FactoryBean

getBeanName

public String getBeanName()
Returns:
Returns the beanName.

setBeanName

public void setBeanName(String name)

Specified by:
setBeanName in interface BeanNameAware

getApplicationContext

public ApplicationContext getApplicationContext()
Returns:
Returns the applicationContext.

setApplicationContext

public void setApplicationContext(ApplicationContext applicationContext)

Specified by:
setApplicationContext in interface ApplicationContextAware

getService

public String getService()
Returns:
Returns the service's bean name.

setService

public void setService(String service)
Sets the service's bean name.

Parameters:
service - The bean name to set.


Copyright © 2005-2011 ELCA. All Rights Reserved.