org.apache.qpid.management.wsdm.capabilities
Class WSDMArtifactsDirector

java.lang.Object
  extended by org.apache.qpid.management.wsdm.capabilities.WSDMArtifactsDirector

final class WSDMArtifactsDirector
extends Object

Director used for coordinate the building process of WS-DM artifacts.


Constructor Summary
WSDMArtifactsDirector(ObjectName eventSourceObjectName, MBeanInfo metadata)
          Builds a new director with the given objectname and (jmx) metadata.
 
Method Summary
(package private)  void direct()
          Starts the build process of this director.
(package private)  Class<MBeanCapability> getCapabilityClass()
          Returns the capabilty class.
(package private)  Element[] getResourceMetadataDescriptor()
          Returns the resource metadata descriptor containing metadata (rules, constraints, etc) for the current resource.
(package private)  Document getWsdl()
          Returns the wsdl.
(package private)  void processAttributes()
          Injects attributes metadata on all builders.
(package private)  void processObjectName()
          Injects event source object name on all builders.
(package private)  void processOperations()
          Injects operations metadata on all builders.
(package private)  void setEnvironment(org.apache.muse.core.Environment environment)
          Injects the environment on this director.
 void setResource(org.apache.muse.core.Resource resource)
          Injectcs the ws resource on this director.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSDMArtifactsDirector

WSDMArtifactsDirector(ObjectName eventSourceObjectName,
                      MBeanInfo metadata)
Builds a new director with the given objectname and (jmx) metadata.

Parameters:
eventSourceObjectName - the object name of the event source mbean.
metadata - the jmx metadata of the corresponding mbean.
Method Detail

direct

void direct()
      throws BuilderException
Starts the build process of this director. This method acts as a facade of the whole build process.

Throws:
BuilderException - when one step of the build process fails.

processObjectName

void processObjectName()
                 throws BuilderException
Injects event source object name on all builders.

Throws:
BuilderException - when one builder raises an exception during this operation.

processAttributes

void processAttributes()
                 throws BuilderException
Injects attributes metadata on all builders.

Throws:
BuilderException - when one builder raises an exception during this operation.

processOperations

void processOperations()
                 throws BuilderException
Injects operations metadata on all builders.

Throws:
BuilderException - when one builder raises an exception during this operation.

getCapabilityClass

Class<MBeanCapability> getCapabilityClass()
Returns the capabilty class.

Returns:
the capability class.

getWsdl

Document getWsdl()
Returns the wsdl.

Returns:
the wsdl.

getResourceMetadataDescriptor

Element[] getResourceMetadataDescriptor()
Returns the resource metadata descriptor containing metadata (rules, constraints, etc) for the current resource. The returned object is an array of Element and each of them maps a resource property.

Returns:
the resource metadata descriptor (as an array of Element).

setEnvironment

void setEnvironment(org.apache.muse.core.Environment environment)
Injects the environment on this director.

Parameters:
environment - the QMan environment.

setResource

public void setResource(org.apache.muse.core.Resource resource)
Injectcs the ws resource on this director.

Parameters:
resource - the ws resource.


Licensed to the Apache Software Foundation