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

java.lang.Object
  extended by org.apache.qpid.management.wsdm.capabilities.WsdlBuilder
All Implemented Interfaces:
Constants, IArtifactBuilder

 class WsdlBuilder
extends Object
implements IArtifactBuilder, Constants

TO BE IMPROVED USING JAXB!!


Field Summary
 
Fields inherited from interface org.apache.qpid.management.wsdm.capabilities.Constants
MIN_OCCURS, NAME_ATTRIBUTE, QMAN_SCHEMA_XPATH, REF_ATTRIBUTE, SERVICE_LOCATION_XPATH, TYPE_ATTRIBUTE, WSRP_PROPERTIES_XPATH, XSD_COMPLEX_TYPE_QNAME, XSD_ELEMENT_QNAME, XSD_SEQUENCE_QNAME
 
Constructor Summary
WsdlBuilder()
           
 
Method Summary
 void begin(ObjectName objectName)
          Initializes this builder.
 void endAttributes()
          Director callback : all attributes have been notified.
 void endOperations()
          Director callback : all operations have been notified.
 Document getWsdl()
          Returns the WSDL built by this builder.
 void onAttribute(MBeanAttributeInfo attributeMetadata)
          For each attibute the corresponding xml type definition must be inserted on the QMan schema related section.
 void onOperation(MBeanOperationInfo operationMetadata)
          Processes an operation (its metadata) of the current MBean.
 void setEnvironment(org.apache.muse.core.Environment environment)
          Injects the application context environment on this builder.
 void setWsdlPath(String wsdlPath)
          Injects the path of the wsdl document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WsdlBuilder

WsdlBuilder()
Method Detail

onAttribute

public void onAttribute(MBeanAttributeInfo attributeMetadata)
                 throws BuilderException
For each attibute the corresponding xml type definition must be inserted on the QMan schema related section. After that, a reference to that definition must be declared on the wsrp element .

Specified by:
onAttribute in interface IArtifactBuilder
Parameters:
attributeMetadata - the attribute metadata.
Throws:
BuilderException - only if this builder wasn't able to get a reference (via XPath) to QMan schema section.

begin

public void begin(ObjectName objectName)
           throws BuilderException
Initializes this builder.

Specified by:
begin in interface IArtifactBuilder
Parameters:
objectName - the name of the current JMX entity.
Throws:
BuilderException - when it's not possible to proceed with the initialization.

onOperation

public void onOperation(MBeanOperationInfo operationMetadata)
                 throws BuilderException
Description copied from interface: IArtifactBuilder
Processes an operation (its metadata) of the current MBean.

Specified by:
onOperation in interface IArtifactBuilder
Parameters:
operationMetadata - the operation metadata.
Throws:
BuilderException - when the builder cannot parse the given metadata.

endAttributes

public void endAttributes()
Director callback : all attributes have been notified. Nothing to do here.

Specified by:
endAttributes in interface IArtifactBuilder

endOperations

public void endOperations()
Director callback : all operations have been notified. Nothing to do here.

Specified by:
endOperations in interface IArtifactBuilder

getWsdl

public Document getWsdl()
Returns the WSDL built by this builder.

Returns:
the WSDL built by this builder.

setEnvironment

public void setEnvironment(org.apache.muse.core.Environment environment)
Injects the application context environment on this builder.

Specified by:
setEnvironment in interface IArtifactBuilder
Parameters:
environment - the application context environment.

setWsdlPath

public void setWsdlPath(String wsdlPath)
Injects the path of the wsdl document.

Parameters:
wsdlPath - the path of the wsdl document.


Licensed to the Apache Software Foundation