org.apache.axis.deployment
Class SimpleDeploymentManager

java.lang.Object
  |
  +--org.apache.axis.deployment.DeploymentRegistry
        |
        +--org.apache.axis.deployment.SimpleDeploymentManager
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
SimpleWsddDeploymentManager

public class SimpleDeploymentManager
extends DeploymentRegistry

This is a simple implementation of the DeploymentRegistry class

Author:
James Snell, Glen Daniels (gdaniels@macromedia.com)
See Also:
Serialized Form

Constructor Summary
SimpleDeploymentManager()
          Constructor - sets up a default encoding style
 
Method Summary
 void addTypeMappingRegistry(java.lang.String encodingStyle, TypeMappingRegistry tmr)
          adds a new mapping registry
 void deploy(DeploymentDocument deployment)
          Deploy a deployment document into this registry.
 void deployHandler(DeployableItem item)
          Deploy the given WSDD Deployable Item
 void deployItem(DeployableItem item)
          Deploy the given WSDD Deployable Item
 void deployService(DeployableItem item)
          Deploy the given WSDD Deployable Item
 void deployTransport(DeployableItem item)
          Deploy the given WSDD Transport
 DeploymentDocument getConfigDocument()
          Obtain our "root" deployment document.
 WSDDGlobalConfiguration getGlobalConfiguration()
          Return the global configuration
 Handler getHandler(QName qname)
          Return an instance of the deployed item
 java.util.Enumeration getHandlers()
          Returns an Enumeration of the QNames for the list of deployed handlers
 Handler getService(QName qname)
          Return an instance of the deployed service
 java.util.Enumeration getServices()
          Returns an Enumeration of the QNames for the list of deployed services
 Handler getTransport(QName qname)
          Return an instance of the deployed transport
 java.util.Enumeration getTransports()
          Returns an Enumeration of the QNames for the list of deployed transports
 TypeMappingRegistry getTypeMappingRegistry(java.lang.String encodingStyle)
          return the named mapping registry
 void removeDeployedItem(QName qname)
          remove the given item
 void removeTypeMappingRegistry(java.lang.String encodingStyle)
          remove the named mapping registry
 void setGlobalConfiguration(WSDDGlobalConfiguration global)
          Set the global configuration
 void undeployHandler(QName qname)
          remove the given handler
 void undeployService(QName qname)
          remove the given item
 void undeployTransport(QName qname)
          remove the given item
 void writeToContext(SerializationContext context)
           
 
Methods inherited from class org.apache.axis.deployment.DeploymentRegistry
load, load, save, save, save, save
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleDeploymentManager

public SimpleDeploymentManager()
Constructor - sets up a default encoding style
Method Detail

deploy

public void deploy(DeploymentDocument deployment)
            throws DeploymentException
Deploy a deployment document into this registry.
Overrides:
deploy in class DeploymentRegistry
Parameters:
deployment - the DeploymentDocument we'll operate on
Throws:
DeploymentException - if there was a problem

getConfigDocument

public DeploymentDocument getConfigDocument()
                                     throws DeploymentException
Obtain our "root" deployment document.
Overrides:
getConfigDocument in class DeploymentRegistry

getGlobalConfiguration

public WSDDGlobalConfiguration getGlobalConfiguration()
                                               throws DeploymentException
Return the global configuration
Overrides:
getGlobalConfiguration in class DeploymentRegistry
Returns:
our global configuration
Throws:
DeploymentException - XXX

setGlobalConfiguration

public void setGlobalConfiguration(WSDDGlobalConfiguration global)
Set the global configuration
Overrides:
setGlobalConfiguration in class DeploymentRegistry
Parameters:
global - XXX

deployItem

public void deployItem(DeployableItem item)
                throws DeploymentException
Deploy the given WSDD Deployable Item
Overrides:
deployItem in class DeploymentRegistry
Parameters:
item - XXX
Throws:
DeploymentException - XXX

deployHandler

public void deployHandler(DeployableItem item)
                   throws DeploymentException
Deploy the given WSDD Deployable Item
Overrides:
deployHandler in class DeploymentRegistry
Parameters:
item - XXX
Throws:
DeploymentException - XXX

deployService

public void deployService(DeployableItem item)
                   throws DeploymentException
Deploy the given WSDD Deployable Item
Overrides:
deployService in class DeploymentRegistry
Parameters:
item - XXX
Throws:
DeploymentException - XXX

deployTransport

public void deployTransport(DeployableItem item)
                     throws DeploymentException
Deploy the given WSDD Transport
Overrides:
deployTransport in class DeploymentRegistry
Parameters:
item - XXX
Throws:
DeploymentException - XXX

getHandler

public Handler getHandler(QName qname)
                   throws DeploymentException
Return an instance of the deployed item
Overrides:
getHandler in class DeploymentRegistry
Parameters:
qname - XXX
Returns:
XXX
Throws:
DeploymentException - XXX

getService

public Handler getService(QName qname)
                   throws DeploymentException
Return an instance of the deployed service
Overrides:
getService in class DeploymentRegistry
Parameters:
qname - XXX
Returns:
XXX
Throws:
DeploymentException - XXX

getTransport

public Handler getTransport(QName qname)
                     throws DeploymentException
Return an instance of the deployed transport
Overrides:
getTransport in class DeploymentRegistry
Parameters:
qname - XXX
Returns:
XXX
Throws:
DeploymentException - XXX

removeDeployedItem

public void removeDeployedItem(QName qname)
                        throws DeploymentException
remove the given item
Overrides:
removeDeployedItem in class DeploymentRegistry
Parameters:
name - XXX
Throws:
DeploymentException - XXX

undeployHandler

public void undeployHandler(QName qname)
                     throws DeploymentException
remove the given handler
Overrides:
undeployHandler in class DeploymentRegistry
Parameters:
qname - XXX
Throws:
DeploymentException - XXX

undeployService

public void undeployService(QName qname)
                     throws DeploymentException
remove the given item
Overrides:
undeployService in class DeploymentRegistry
Parameters:
qname - XXX
Throws:
DeploymentException - XXX

undeployTransport

public void undeployTransport(QName qname)
                       throws DeploymentException
remove the given item
Overrides:
undeployTransport in class DeploymentRegistry
Parameters:
qname - XXX
Throws:
DeploymentException - XXX

getTypeMappingRegistry

public TypeMappingRegistry getTypeMappingRegistry(java.lang.String encodingStyle)
                                           throws DeploymentException
return the named mapping registry
Overrides:
getTypeMappingRegistry in class DeploymentRegistry
Parameters:
encodingStyle - XXX
Returns:
XXX
Throws:
DeploymentException - XXX

addTypeMappingRegistry

public void addTypeMappingRegistry(java.lang.String encodingStyle,
                                   TypeMappingRegistry tmr)
adds a new mapping registry
Overrides:
addTypeMappingRegistry in class DeploymentRegistry
Parameters:
encodingStyle - XXX
tmr - XXX

removeTypeMappingRegistry

public void removeTypeMappingRegistry(java.lang.String encodingStyle)
remove the named mapping registry
Overrides:
removeTypeMappingRegistry in class DeploymentRegistry
Parameters:
encodingStyle - XXX

writeToContext

public void writeToContext(SerializationContext context)
                    throws java.io.IOException
Overrides:
writeToContext in class DeploymentRegistry

getServices

public java.util.Enumeration getServices()
                                  throws DeploymentException
Returns an Enumeration of the QNames for the list of deployed services
Overrides:
getServices in class DeploymentRegistry
Returns:
Enumeration of QNames
Throws:
DeploymentException -  

getHandlers

public java.util.Enumeration getHandlers()
                                  throws DeploymentException
Returns an Enumeration of the QNames for the list of deployed handlers
Overrides:
getHandlers in class DeploymentRegistry
Returns:
Enumeration of QNames
Throws:
DeploymentException -  

getTransports

public java.util.Enumeration getTransports()
                                    throws DeploymentException
Returns an Enumeration of the QNames for the list of deployed transports
Overrides:
getTransports in class DeploymentRegistry
Returns:
Enumeration of QNames
Throws:
DeploymentException -  


Copyright © 2001 Apache XML Project. All Rights Reserved.