org.jboss.soa.esb.listeners.config
Class ServicePublisher

java.lang.Object
  extended by org.jboss.soa.esb.listeners.config.ServicePublisher

public class ServicePublisher
extends java.lang.Object

Service contract publisher.

Author:
tom.fennelly@jboss.com

Constructor Summary
ServicePublisher(java.lang.String name, java.lang.String category, org.jboss.internal.soa.esb.publish.Publisher publisher)
          Public constructor.
 
Method Summary
static void addContractReferencePublishers(ManagedLifecycleController controller, java.util.List<? extends org.jboss.internal.soa.esb.publish.ContractReferencePublisher> publishers)
          Add external contract reference publishers to the list of publishers
static void addServicePublishers(ManagedLifecycleController controller, java.util.Map<Service,java.util.List<ServicePublisher>> publishers)
          Add the service publishers to the controller map.
 java.lang.String getCategory()
          Get the Service category.
 org.jboss.internal.soa.esb.publish.ContractPublisher getContractPublisher()
          Get the contract publisher for the Service associated with this publisher.
 java.lang.String getDescription()
          Get the service description.
 org.jboss.internal.soa.esb.publish.Publisher getPublisher()
          Get the publisher for the Service associated with this publisher.
 java.lang.String getServiceName()
          Get the name of the Service.
static java.util.List<ServicePublisher> getServicePublishers()
          Get the full list of publishers registered against all active ManagedLifecycleController instances.
static java.util.List<ServicePublisher> getServicePublishers(Service service)
          Get the list of publishers registered against the specified Service
static java.util.List<Service> getServices()
          Get the list of registered services
static void removeServicePublishers(ManagedLifecycleController controller)
          Remove the service publications for the services under the control of the supplied controller.
 void setDescription(java.lang.String description)
          Set the service description.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServicePublisher

public ServicePublisher(java.lang.String name,
                        java.lang.String category,
                        org.jboss.internal.soa.esb.publish.Publisher publisher)
Public constructor.

Parameters:
name - Service name.
category - Service category.
publisher - publisher implementation.
Method Detail

getDescription

public java.lang.String getDescription()
Get the service description.

Returns:
Service description.

setDescription

public void setDescription(java.lang.String description)
Set the service description.

Parameters:
description - Service description.

getServiceName

public java.lang.String getServiceName()
Get the name of the Service.

Returns:
The service name.

getCategory

public java.lang.String getCategory()
Get the Service category.

Returns:
The service category.

getContractPublisher

public org.jboss.internal.soa.esb.publish.ContractPublisher getContractPublisher()
Get the contract publisher for the Service associated with this publisher.

Returns:
The contract publisher.

getPublisher

public org.jboss.internal.soa.esb.publish.Publisher getPublisher()
Get the publisher for the Service associated with this publisher.

Returns:
The publisher.

addServicePublishers

public static void addServicePublishers(ManagedLifecycleController controller,
                                        java.util.Map<Service,java.util.List<ServicePublisher>> publishers)
Add the service publishers to the controller map.

Parameters:
controller - The controller for the services
servicePublishers - The service publishers

getServicePublishers

public static java.util.List<ServicePublisher> getServicePublishers()
Get the full list of publishers registered against all active ManagedLifecycleController instances.

Returns:
The full list of publishers.

removeServicePublishers

public static void removeServicePublishers(ManagedLifecycleController controller)
Remove the service publications for the services under the control of the supplied controller.

Parameters:
controller - Controller.

addContractReferencePublishers

public static void addContractReferencePublishers(ManagedLifecycleController controller,
                                                  java.util.List<? extends org.jboss.internal.soa.esb.publish.ContractReferencePublisher> publishers)
Add external contract reference publishers to the list of publishers

Parameters:
controller - The controller
publishers -

getServices

public static java.util.List<Service> getServices()
Get the list of registered services

Returns:
The list of services.

getServicePublishers

public static java.util.List<ServicePublisher> getServicePublishers(Service service)
Get the list of publishers registered against the specified Service

Returns:
The list of publishers.