org.softamis.cluster4spring.support.context
Class DefaultServicePublisher<EC extends AutoDiscoveredServiceExporter>

java.lang.Object
  extended by org.softamis.cluster4spring.support.context.AbstractServicePublisher<EC>
      extended by org.softamis.cluster4spring.support.context.GenericServicePublisher<EC>
          extended by org.softamis.cluster4spring.support.context.DefaultServicePublisher<EC>
All Implemented Interfaces:
java.util.EventListener, ServicePublisher, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener

public class DefaultServicePublisher<EC extends AutoDiscoveredServiceExporter>
extends GenericServicePublisher<EC>

Default implementation of ServicePublisher which allows to specify class of exporter and name of protocol via appropriate properties.

Author:
Andrew Sazonov

Field Summary
 
Fields inherited from class org.softamis.cluster4spring.support.context.GenericServicePublisher
fServicesRegistry
 
Fields inherited from class org.softamis.cluster4spring.support.context.AbstractServicePublisher
fAutodiscoveredExporterClass, fAutodiscoveredServicesInfo, fBeanName, fCacheAutoDiscoveredServicesInfo, fContext, fExporterAcceptor, fProtocolName, fServerID, fServerType, fServiceGroup
 
Fields inherited from interface org.softamis.cluster4spring.ServicePublisher
SERVER_TYPE_DELIMITER
 
Constructor Summary
DefaultServicePublisher()
           
 
Method Summary
 void setAutodiscoveredExporterClass(java.lang.Class<EC> aAutodiscoveredExporterClass)
           
 void setProtocolName(java.lang.String aProtocolName)
           
 
Methods inherited from class org.softamis.cluster4spring.support.context.GenericServicePublisher
afterPropertiesSet, doRegisterServiceInServicesRegistry, doUnregisterServiceInServicesRegistry, getServicesRegistry, setServicesRegistry
 
Methods inherited from class org.softamis.cluster4spring.support.context.AbstractServicePublisher
collectAutoDiscoveredServices, contextClosed, contextRefreshed, createDefaultExporterAcceptor, createServiceInfos, createServiceMoniker, createServicesGroup, doGetAutoDiscoveredServices, getAutodiscoveredExporterClass, getProtocolName, getPublisherName, getServerID, getServerType, getServiceGroup, getServiceKey, isCacheAutoDiscoveredServicesInfo, onApplicationEvent, prepareServiceURL, publishService, publishServices, setApplicationContext, setBeanName, setCacheAutoDiscoveredServicesInfo, setExporterAcceptor, setServerID, setServerType, setServiceGroup, unPublishService, unPublishServices
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultServicePublisher

public DefaultServicePublisher()
Method Detail

setAutodiscoveredExporterClass

public void setAutodiscoveredExporterClass(java.lang.Class<EC> aAutodiscoveredExporterClass)

setProtocolName

public void setProtocolName(java.lang.String aProtocolName)