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

java.lang.Object
  extended by org.apache.muse.core.AbstractCapability
      extended by org.apache.muse.ws.metadata.impl.SimpleMetadataExchange
          extended by org.apache.muse.ws.resource.metadata.ext.WsrfMetadataExchange
              extended by org.apache.qpid.management.wsdm.capabilities.QManMetadataExchangeCapability
All Implemented Interfaces:
org.apache.muse.core.Capability, org.apache.muse.core.Initialization, org.apache.muse.core.InitializationParameters, org.apache.muse.core.Shutdown, org.apache.muse.ws.metadata.MetadataExchange

public class QManMetadataExchangeCapability
extends org.apache.muse.ws.resource.metadata.ext.WsrfMetadataExchange

QMan resource metadata exchange. We cannot resuse the preexisting classes directly because the wsdl of the service instance is retrieved using a file path. Since the owner resource (QManWsResource) is dynamic (I mean, its interface is dynamic), the corresponding WSDL cannot defined at compile time but needs some changes when the resource is created. As part of that, the WSDL template found under wsdl folder is modified with the additional properties of the given resource. The metadata exchange capability must include those properties too. Note that this capability is appliable only to a QManWsResource.


Constructor Summary
QManMetadataExchangeCapability()
           
 
Method Summary
 Element[] getMetadata(String dialect)
           
protected  Element getResourceMetadataDescriptor()
          Returns the resource metadata descriptor associated with the owenr resource of thi capability.
protected  Element getWSDL()
          Returns the WSDL associated with the owner of this capability.
 
Methods inherited from class org.apache.muse.ws.metadata.impl.SimpleMetadataExchange
createGetMetadataHandler, initialize
 
Methods inherited from class org.apache.muse.core.AbstractCapability
getActions, getCapabilityURI, getEnvironment, getInitializationParameter, getInitializationParameters, getLog, getMessageHandler, getPersistence, getResource, hasBeenInitialized, hasBeenShutdown, initializeCompleted, prepareShutdown, setCapabilityURI, setEnvironment, setInitializationParameters, setLog, setMessageHandler, setMessageHandlers, setPersistence, setResource, shutdown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.muse.core.Capability
getActions, getCapabilityURI, getEnvironment, getLog, getMessageHandler, getPersistence, getResource, initializeCompleted, prepareShutdown, setCapabilityURI, setEnvironment, setLog, setMessageHandlers, setPersistence, setResource
 
Methods inherited from interface org.apache.muse.core.Initialization
hasBeenInitialized
 
Methods inherited from interface org.apache.muse.core.InitializationParameters
getInitializationParameter, getInitializationParameters, setInitializationParameters
 
Methods inherited from interface org.apache.muse.core.Shutdown
hasBeenShutdown, shutdown
 

Constructor Detail

QManMetadataExchangeCapability

public QManMetadataExchangeCapability()
Method Detail

getWSDL

protected Element getWSDL()
Returns the WSDL associated with the owner of this capability.

Overrides:
getWSDL in class org.apache.muse.ws.metadata.impl.SimpleMetadataExchange
Returns:
the WSDL associated with the owner of this capability.

getResourceMetadataDescriptor

protected Element getResourceMetadataDescriptor()
Returns the resource metadata descriptor associated with the owenr resource of thi capability.

Returns:
the resource metadata descriptor.

getMetadata

public Element[] getMetadata(String dialect)
Specified by:
getMetadata in interface org.apache.muse.ws.metadata.MetadataExchange
Overrides:
getMetadata in class org.apache.muse.ws.resource.metadata.ext.WsrfMetadataExchange


Licensed to the Apache Software Foundation