org.apache.muse.core.platform.osgi.descriptor
Class OSGiResourceDescriptor
java.lang.Object
org.apache.muse.core.descriptor.SimpleResourceDescriptor
org.apache.muse.core.platform.osgi.descriptor.OSGiResourceDescriptor
- All Implemented Interfaces:
- ResourceDescriptor, XmlSerializable
public class OSGiResourceDescriptor
- extends SimpleResourceDescriptor
OSGiResourceDescriptor is an OSGi-aware implementation of the
SimpleResourceDescriptor
class, which implements the
ResourceDescriptor
interface
- Author:
- Joel Hawkins (joelh)
- See Also:
ResourceDecriptor
Field Summary |
protected org.osgi.framework.Bundle |
bundle
|
Methods inherited from class org.apache.muse.core.descriptor.SimpleResourceDescriptor |
createCapabilityDefinitions, createContextPath, createInitParamDescriptor, createMessageHandler, createMessageHandlers, createRequiredClasses, createResourceIdFactory, createUsingPersistence, createWSDL, getResourceDefinition, load, setResourceDefinition, toXML, toXML |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
bundle
protected org.osgi.framework.Bundle bundle
OSGiResourceDescriptor
public OSGiResourceDescriptor()
setBundle
public void setBundle(org.osgi.framework.Bundle bundle)
createResourceClass
protected Class createResourceClass(Element xml,
Environment env)
- resolves the resource class from the resource decriptor
- Overrides:
createResourceClass
in class SimpleResourceDescriptor
- Parameters:
xml
- the xml Element representing the resource classenv
- the Muse Environment
- Returns:
- the Class for the resource
getWsdlOperations
protected Map getWsdlOperations(Document wsdlDoc,
WsdlConfig wsdlConfig,
Environment env)
- returns the operations from the wsdl document, using an internal WSDLLocator implementation
that allows access to wsdl and schema imports from external Bundles.
- Overrides:
getWsdlOperations
in class SimpleResourceDescriptor
- Parameters:
wsdlDoc
- the Document
representing the wsdl for the resource typewsdlConfig
- the wsdl configuration used to establish context for other documents
referenced from the inital wsdl.env
- the Muse Environment
- Returns:
- a
Map
containing the wsdl Operations keyed by their respective
WSA Actions
createCapabilityDescriptor
protected CapabilityDescriptor createCapabilityDescriptor()
- factory method for creating Capability Descriptors
- Overrides:
createCapabilityDescriptor
in class SimpleResourceDescriptor
- Returns:
- a new OSGiCapabilityDescriptor
createResourceDefinition
protected ResourceDefinition createResourceDefinition()
- factory method for creating ResourceDefinitions
- Returns:
- a new OSGiResourceDefinition
Copyright © 2005-2011 Apache Web Services - Muse. All Rights Reserved.