org.apache.muse.core.platform.osgi.descriptor
Class OSGiDeploymentDescriptor

java.lang.Object
  extended by org.apache.muse.core.platform.osgi.descriptor.OSGiDeploymentDescriptor
All Implemented Interfaces:
DeploymentDescriptor, XmlSerializable

public class OSGiDeploymentDescriptor
extends Object
implements DeploymentDescriptor

OSGiDeploymentDescriptor is an implementation of DeploymentDescriptor specific to the OSGi environment

Author:
Joel Hawkins (joelh)
See Also:
DeploymentDescriptor

Field Summary
protected  org.osgi.framework.Bundle bundle
          the Bundle the current deployment descriptor was loaded from
 
Constructor Summary
OSGiDeploymentDescriptor()
           
 
Method Summary
protected  Collection createResourceDefinitions(Element xml, Environment env)
          creates the set of resource definitions for a deployment descriptor.
protected  ResourceDescriptor createResourceDescriptor()
          factory method for creating ResourceDescriptors
protected  RouterDefinition createRouterDefinition(Element xml, Environment env)
          factory method for creating RouterDefinitions
protected  RouterDescriptor createRouterDescriptor()
          factory method for creating RouterDescriptors
 Collection createSerializerDefinitions(Element xml, Environment env)
           
protected  SerializerDescriptor createSerializerDescriptor()
           
 Collection getResourceDefinitions()
           
 RouterDefinition getRouterDefinition()
           
 Collection getSerializerDefinitions()
           
 String getWsdlPathForContext(Document xml, String context)
           
 void load(Document xml, Environment environment)
          loads the descriptor from the muse.xml document.
 Collection loadContextPaths(Document xml, Environment env)
          Loads the context paths from the muse.xml descriptor
 void setBundle(org.osgi.framework.Bundle bundle)
          setter for the decriptor Bundle
 void setResourceDefinitions(Collection definitions)
           
 void setRouterDefinition(RouterDefinition definition)
           
 void setSerializerDefinitions(Collection definitions)
           
 Element toXML()
          Converts this object into an XML representation, as defined by its related schema or specification.
 Element toXML(Document doc)
          Converts this object into an XML representation, as defined by its related schema or specification.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bundle

protected org.osgi.framework.Bundle bundle
the Bundle the current deployment descriptor was loaded from

Constructor Detail

OSGiDeploymentDescriptor

public OSGiDeploymentDescriptor()
Method Detail

setBundle

public void setBundle(org.osgi.framework.Bundle bundle)
setter for the decriptor Bundle

Parameters:
bundle -

loadContextPaths

public Collection loadContextPaths(Document xml,
                                   Environment env)
                            throws SoapFault
Loads the context paths from the muse.xml descriptor

Parameters:
xml -
env -
Returns:
the context paths contianed by the descriptor
Throws:
SoapFault
See Also:
DeploymentDescriptor#loadContextPaths(Document, Environment)

getWsdlPathForContext

public String getWsdlPathForContext(Document xml,
                                    String context)
                             throws SoapFault
Throws:
SoapFault

load

public void load(Document xml,
                 Environment environment)
          throws SoapFault
loads the descriptor from the muse.xml document.

Specified by:
load in interface DeploymentDescriptor
Throws:
SoapFault
See Also:
DeploymentDescriptor.load(Document, Environment)

createResourceDefinitions

protected Collection createResourceDefinitions(Element xml,
                                               Environment env)
                                        throws SoapFault
creates the set of resource definitions for a deployment descriptor.

Parameters:
xml -
env -
Returns:
a collection of OSGiResourceDescriptor objects
Throws:
SoapFault
See Also:
OSGiResourceDescriptor

createResourceDescriptor

protected ResourceDescriptor createResourceDescriptor()
factory method for creating ResourceDescriptors

Returns:
an OSGiResourceDescriptor instance
See Also:
OSGiResourceDescriptor

createRouterDescriptor

protected RouterDescriptor createRouterDescriptor()
factory method for creating RouterDescriptors

Returns:
a OSGiRouterDescriptor instance
See Also:
OSGiRouterDescriptor

createRouterDefinition

protected RouterDefinition createRouterDefinition(Element xml,
                                                  Environment env)
                                           throws SoapFault
factory method for creating RouterDefinitions

Parameters:
xml -
env -
Returns:
a RouterDefinition instance
Throws:
SoapFault

createSerializerDescriptor

protected SerializerDescriptor createSerializerDescriptor()

createSerializerDefinitions

public Collection createSerializerDefinitions(Element xml,
                                              Environment env)
                                       throws SoapFault
Throws:
SoapFault

getSerializerDefinitions

public Collection getSerializerDefinitions()
Specified by:
getSerializerDefinitions in interface DeploymentDescriptor

getResourceDefinitions

public Collection getResourceDefinitions()
Specified by:
getResourceDefinitions in interface DeploymentDescriptor

getRouterDefinition

public RouterDefinition getRouterDefinition()
Specified by:
getRouterDefinition in interface DeploymentDescriptor

setSerializerDefinitions

public void setSerializerDefinitions(Collection definitions)
Specified by:
setSerializerDefinitions in interface DeploymentDescriptor

setResourceDefinitions

public void setResourceDefinitions(Collection definitions)
Specified by:
setResourceDefinitions in interface DeploymentDescriptor

setRouterDefinition

public void setRouterDefinition(RouterDefinition definition)
Specified by:
setRouterDefinition in interface DeploymentDescriptor

toXML

public Element toXML()
Description copied from interface: XmlSerializable
Converts this object into an XML representation, as defined by its related schema or specification. The format of the XML is dependent on the concrete type.

Specified by:
toXML in interface XmlSerializable
Returns:
An XML representation of this object.

toXML

public Element toXML(Document doc)
Description copied from interface: XmlSerializable
Converts this object into an XML representation, as defined by its related schema or specification. The format of the XML is dependent on the concrete type.

Specified by:
toXML in interface XmlSerializable
Parameters:
doc - The DOM Document that will be used to create all of the nodes in the resulting XML fragment.
Returns:
An XML representation of this object.


Copyright © 2005-2011 Apache Web Services - Muse. All Rights Reserved.