org.apache.axis2.deployment
Class DescriptionBuilder

java.lang.Object
  extended byorg.apache.axis2.deployment.DescriptionBuilder
All Implemented Interfaces:
DeploymentConstants
Direct Known Subclasses:
AxisConfigBuilder, ModuleBuilder, ServiceBuilder, ServiceGroupBuilder

public class DescriptionBuilder
extends java.lang.Object
implements DeploymentConstants

To do the common tasks for all *Builder class


Field Summary
protected  DeploymentEngine engine
           
protected  Log log
           
protected  java.io.InputStream serviceInputSteram
           
 
Fields inherited from interface org.apache.axis2.deployment.DeploymentConstants
AFTER, ATQNAME, ATTLOCKED, ATTNAME, ATUSE, AXIS_STORAGE, AXIS2CONFIG, BEANMAPPINGST, BEFORE, CLASSNAME, CONTEXTPATHNAME, DESCRIPTION, DIPSTCH_ORDER, DIPSTCHER, EXTRACTSERVICEARCHIVE, HANDERST, HOTDEPLOYMENT, HOTUPDATE, IN_FAILTFLOW, INFLOWST, JWS_EXTENSION, LISTENERST, MEP, MESSAGERECEIVER, META_INF, MODULE, MODULE_PATH, MODULECONFIG, MODULEST, MODULEXML, OPRATIONST, ORDER, OUT_FAILTFLOW, OUTFLOWST, PARAMETERST, PHASE, PHASE_ORDER, PHASEFIRST, PHASELAST, PHASEST, REF, SERVICE, SERVICE_ELEMENT, SERVICE_GROUP_ELEMENT, SERVICE_PATH, SERVICETAG, SERVICEWSDL, SERVICEXML, STYLENAME, TRANSPORTRECEIVER, TRANSPORTSENDER, TRANSPORTSTAG, TRANSPORTTAG, TYPE, TYPEMAPPINGST
 
Constructor Summary
DescriptionBuilder()
           
DescriptionBuilder(java.io.InputStream serviceInputSteram, DeploymentEngine engine)
           
 
Method Summary
 OMElement buildOM()
          This will creat OMElemnt for a given services.xml
static java.lang.String getShortFileName(java.lang.String fileName)
          This method is used to retrive service name form the arechive file name if the archive file name is service1.aar , then axis service name would be service1
protected  java.lang.String getValue(java.lang.String in)
          this method is to get the value of attribue eg xsd:anyVal --> anyVal
protected  MessageReceiver loadDefaultMessageReciver()
           
protected  MessageReceiver loadMessageReceiver(java.lang.ClassLoader loader, OMElement reciverElement)
           
protected  Flow processFlow(OMElement flowelement, ParameterInclude parent)
          To process Flow elements in services.xml
protected  HandlerDescription processHandler(OMElement handler_element, ParameterInclude parent)
          To process Handler element
protected  void processOpeasrtionModuleRefs(java.util.Iterator moduleRefs, OperationDescription opeartion)
           
protected  void processParameters(java.util.Iterator paramters, ParameterInclude parameterInclude, ParameterInclude parent)
          To get the Paramter object out from the OM
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected Log log

serviceInputSteram

protected java.io.InputStream serviceInputSteram

engine

protected DeploymentEngine engine
Constructor Detail

DescriptionBuilder

public DescriptionBuilder(java.io.InputStream serviceInputSteram,
                          DeploymentEngine engine)

DescriptionBuilder

public DescriptionBuilder()
Method Detail

buildOM

public OMElement buildOM()
                  throws XMLStreamException
This will creat OMElemnt for a given services.xml

Returns:
OMElement OMElement
Throws:
javax.xml.stream.XMLStreamException
XMLStreamException

processFlow

protected Flow processFlow(OMElement flowelement,
                           ParameterInclude parent)
                    throws DeploymentException
To process Flow elements in services.xml

Parameters:
flowelement - OMElement
Returns:
Throws:
DeploymentException - DeploymentException

processHandler

protected HandlerDescription processHandler(OMElement handler_element,
                                            ParameterInclude parent)
                                     throws DeploymentException
To process Handler element

Parameters:
handler_element - OMElement
Returns:
Throws:
DeploymentException - DeploymentException

processParameters

protected void processParameters(java.util.Iterator paramters,
                                 ParameterInclude parameterInclude,
                                 ParameterInclude parent)
                          throws DeploymentException
To get the Paramter object out from the OM

Parameters:
paramters - Parameter
parameterInclude - ParameterInclude
parent - ParameterInclude
Throws:
DeploymentException

processOpeasrtionModuleRefs

protected void processOpeasrtionModuleRefs(java.util.Iterator moduleRefs,
                                           OperationDescription opeartion)
                                    throws DeploymentException
Throws:
DeploymentException

loadMessageReceiver

protected MessageReceiver loadMessageReceiver(java.lang.ClassLoader loader,
                                              OMElement reciverElement)
                                       throws DeploymentException
Throws:
DeploymentException

loadDefaultMessageReciver

protected MessageReceiver loadDefaultMessageReciver()
                                             throws DeploymentException
Throws:
DeploymentException

getShortFileName

public static java.lang.String getShortFileName(java.lang.String fileName)
This method is used to retrive service name form the arechive file name if the archive file name is service1.aar , then axis service name would be service1

Parameters:
fileName -
Returns:
String

getValue

protected java.lang.String getValue(java.lang.String in)
this method is to get the value of attribue eg xsd:anyVal --> anyVal

Returns:
String