org.ow2.jonas.ws.publish.internal.manager
Class DefaultWSDLPublisherManager

java.lang.Object
  extended by javax.management.NotificationBroadcasterSupport
      extended by org.ow2.jonas.lib.reconfig.ReconfigEmitter
          extended by org.ow2.jonas.lib.service.AbsServiceImpl
              extended by org.ow2.jonas.ws.publish.internal.manager.DefaultWSDLPublisherManager
All Implemented Interfaces:
NotificationBroadcaster, NotificationEmitter, Service, WSDLPublisher, WSDLPublisherManager

public class DefaultWSDLPublisherManager
extends AbsServiceImpl
implements WSDLPublisherManager

Delegate publishing to all added WSDL Publishers.

Author:
Xavier Delplanque, Guillaume Sauthier

Field Summary
 
Fields inherited from class org.ow2.jonas.lib.reconfig.ReconfigEmitter
RECONFIG_TYPE, SAVE_RECONFIG_TYPE
 
Constructor Summary
DefaultWSDLPublisherManager()
          Get a new instance of WSDLManager.
 
Method Summary
 void addPublisher(WSDLPublisher publisher)
          Add a new publisher in this manager.
protected  void doStart()
          Abstract start-up method to be implemented by sub-classes.
protected  void doStop()
          Abstract method for service stopping to be implemented by sub-classes.
 void publish(List<PublishableDefinition> publishableDefinitionList)
          Delegate publishing to all added WSDL Publishers.
 void publish(PublishableDefinition publishableDefinition)
          Delegate publishing to all added WSDL Publishers.
 void removePublisher(WSDLPublisher publisher)
          Remove an already registered publisher.
 void setJmxService(JmxService jmxService)
           
 void setPublishers(String param)
           
 
Methods inherited from class org.ow2.jonas.lib.service.AbsServiceImpl
convertToList, doInit, getDomainName, getJonasServerName, getName, getServerProperties, init, isStarted, setName, setServerProperties, start, stop, throwRequirementException, toString
 
Methods inherited from class org.ow2.jonas.lib.reconfig.ReconfigEmitter
initLogger, sendReconfigNotification, sendSaveNotification
 
Methods inherited from class javax.management.NotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultWSDLPublisherManager

public DefaultWSDLPublisherManager()
Get a new instance of WSDLManager.

Method Detail

setPublishers

public void setPublishers(String param)
Parameters:
param - List of WSDL Publishers to create.

addPublisher

public void addPublisher(WSDLPublisher publisher)
Add a new publisher in this manager.

Specified by:
addPublisher in interface WSDLPublisherManager
Parameters:
publisher - new WSDLPublisher

removePublisher

public void removePublisher(WSDLPublisher publisher)
Remove an already registered publisher.

Specified by:
removePublisher in interface WSDLPublisherManager
Parameters:
publisher - WSDLPublisher to be removed

publish

public void publish(PublishableDefinition publishableDefinition)
             throws WSDLPublisherException
Delegate publishing to all added WSDL Publishers.

Specified by:
publish in interface WSDLPublisher
Parameters:
publishableDefinition - the data containing the WSDL file to be published and the publication info
Throws:
WSDLPublisherException - if an error occurs at the publishing.

publish

public void publish(List<PublishableDefinition> publishableDefinitionList)
             throws WSDLPublisherException
Delegate publishing to all added WSDL Publishers.

Specified by:
publish in interface WSDLPublisher
Parameters:
publishableDefinitionList - a list of data containing the WSDL file to be published and the publication info
Throws:
WSDLPublisherException - if an error occurs at the publishing.

doStart

protected void doStart()
                throws ServiceException
Abstract start-up method to be implemented by sub-classes.

Specified by:
doStart in class AbsServiceImpl
Throws:
ServiceException - service start-up failed

doStop

protected void doStop()
               throws ServiceException
Abstract method for service stopping to be implemented by sub-classes.

Specified by:
doStop in class AbsServiceImpl
Throws:
ServiceException - service stopping failed

setJmxService

public void setJmxService(JmxService jmxService)
Parameters:
jmxService - the jmxService to set


Copyright © 2010 OW2 Consortium. All Rights Reserved.