org.apache.axis2.jaxws.framework
Class JAXWSDeployer

java.lang.Object
  extended by org.apache.axis2.deployment.AbstractDeployer
      extended by org.apache.axis2.jaxws.framework.JAXWSDeployer
All Implemented Interfaces:
Deployer

public class JAXWSDeployer
extends AbstractDeployer


Field Summary
protected  AxisConfiguration axisConfig
           
protected  ConfigurationContext configCtx
           
 
Fields inherited from class org.apache.axis2.deployment.AbstractDeployer
deploymentFileDataMap
 
Constructor Summary
JAXWSDeployer()
           
 
Method Summary
protected  AxisService createAxisService(ClassLoader classLoader, String className, URL serviceLocation)
           
 void deploy(DeploymentFileData deploymentFileData)
          Process a file and add it to the configuration
protected  AxisServiceGroup deployClasses(String groupName, URL location, ClassLoader classLoader, List<String> classList)
           
protected  void deployServicesInWARClassPath()
           
protected  ArrayList<String> getClassesInWebInfDirectory(File file)
           
 void init(ConfigurationContext configCtx)
          Initialize the Deployer
static boolean isJar(File f)
          Check if this inputstream is a jar/zip
 void setDirectory(String directory)
          Set the directory
 void setExtension(String extension)
          Set the extension to look for TODO: Support multiple extensions?
protected  void storeFaultyService(DeploymentFileData deploymentFileData, Throwable t)
           
 void undeploy(String fileName)
          Remove a given file from the configuration
 
Methods inherited from class org.apache.axis2.deployment.AbstractDeployer
cleanup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

configCtx

protected ConfigurationContext configCtx

axisConfig

protected AxisConfiguration axisConfig
Constructor Detail

JAXWSDeployer

public JAXWSDeployer()
Method Detail

init

public void init(ConfigurationContext configCtx)
Description copied from interface: Deployer
Initialize the Deployer

Parameters:
configCtx - our ConfigurationContext

deployServicesInWARClassPath

protected void deployServicesInWARClassPath()

getClassesInWebInfDirectory

protected ArrayList<String> getClassesInWebInfDirectory(File file)

deploy

public void deploy(DeploymentFileData deploymentFileData)
Description copied from interface: Deployer
Process a file and add it to the configuration

Specified by:
deploy in interface Deployer
Overrides:
deploy in class AbstractDeployer
Parameters:
deploymentFileData - the DeploymentFileData object to deploy

deployClasses

protected AxisServiceGroup deployClasses(String groupName,
                                         URL location,
                                         ClassLoader classLoader,
                                         List<String> classList)
                                  throws ClassNotFoundException,
                                         InstantiationException,
                                         IllegalAccessException,
                                         AxisFault
Throws:
ClassNotFoundException
InstantiationException
IllegalAccessException
AxisFault

storeFaultyService

protected void storeFaultyService(DeploymentFileData deploymentFileData,
                                  Throwable t)

createAxisService

protected AxisService createAxisService(ClassLoader classLoader,
                                        String className,
                                        URL serviceLocation)
                                 throws ClassNotFoundException,
                                        InstantiationException,
                                        IllegalAccessException,
                                        AxisFault
Throws:
ClassNotFoundException
InstantiationException
IllegalAccessException
AxisFault

setDirectory

public void setDirectory(String directory)
Description copied from interface: Deployer
Set the directory

Parameters:
directory - directory name

setExtension

public void setExtension(String extension)
Description copied from interface: Deployer
Set the extension to look for TODO: Support multiple extensions?

Parameters:
extension - the file extension associated with this Deployer

undeploy

public void undeploy(String fileName)
Description copied from interface: Deployer
Remove a given file from the configuration

Specified by:
undeploy in interface Deployer
Overrides:
undeploy in class AbstractDeployer
Parameters:
fileName - name of item to remove

isJar

public static boolean isJar(File f)
Check if this inputstream is a jar/zip

Parameters:
f - - file
Returns:
true if inputstream is a jar


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.