org.glassfish.webservices
Class WebServicesDeployer
java.lang.Object
org.glassfish.javaee.core.deployment.JavaEEDeployer<WebServicesContainer,WebServicesApplication>
org.glassfish.webservices.WebServicesDeployer
- All Implemented Interfaces:
- Deployer<WebServicesContainer,WebServicesApplication>
@Service
public class WebServicesDeployer
- extends JavaEEDeployer<WebServicesContainer,WebServicesApplication>
Webservices module deployer. This is loaded from WebservicesContainer
- Author:
- Bhakti Mehta, Rama Pulavarthi
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
deploymentNotifier
public static final WebServiceDeploymentNotifier deploymentNotifier
WebServicesDeployer
public WebServicesDeployer()
- Constructor
getDeploymentNotifier
public static WebServiceDeploymentNotifier getDeploymentNotifier()
getModuleType
protected java.lang.String getModuleType()
- Specified by:
getModuleType in class JavaEEDeployer<WebServicesContainer,WebServicesApplication>
cleanArtifacts
protected void cleanArtifacts(DeploymentContext deploymentContext)
throws DeploymentException
- Throws:
DeploymentException
prepare
public boolean prepare(DeploymentContext dc)
- Prepares the application bits for running in the application server.
For certain cases, this is exploding the jar file to a format the
ContractProvider instance is expecting, generating non portable
artifacts and other application specific tasks.
Failure to prepare should throw an exception which will cause the overall
deployment to fail.
- Specified by:
prepare in interface Deployer<WebServicesContainer,WebServicesApplication>- Overrides:
prepare in class JavaEEDeployer<WebServicesContainer,WebServicesApplication>
- Parameters:
dc - deployment context
- Returns:
- true if the prepare phase was successful
setupJaxWSServiceForDeployment
protected void setupJaxWSServiceForDeployment(DeploymentContext dc,
WebService ws)
throws DeploymentException
- Throws:
DeploymentException
loadMetaData
public java.lang.Object loadMetaData(java.lang.Class type,
DeploymentContext dc)
- Loads the meta date associated with the application.
- Specified by:
loadMetaData in interface Deployer<WebServicesContainer,WebServicesApplication>- Overrides:
loadMetaData in class JavaEEDeployer<WebServicesContainer,WebServicesApplication>
getMetaData
public MetaData getMetaData()
- Returns the meta data assocated with this Deployer
- Specified by:
getMetaData in interface Deployer<WebServicesContainer,WebServicesApplication>- Overrides:
getMetaData in class JavaEEDeployer<WebServicesContainer,WebServicesApplication>
- Returns:
- the meta data for this Deployer
resolveCatalog
public java.net.URL resolveCatalog(java.io.File catalogFile,
java.lang.String wsdlFile,
WebService ws)
throws DeploymentException
- Throws:
DeploymentException
downloadFile
public void downloadFile(java.net.URL httpUrl,
java.io.File toFile)
throws java.lang.Exception
- Throws:
java.lang.Exception
moveFile
public static void moveFile(java.lang.String sourceFile,
java.lang.String destFile)
throws java.io.IOException
- Throws:
java.io.IOException
unload
public void unload(WebServicesApplication container,
DeploymentContext context)
clean
public void clean(DeploymentContext dc)
- Specified by:
clean in interface Deployer<WebServicesContainer,WebServicesApplication>- Overrides:
clean in class JavaEEDeployer<WebServicesContainer,WebServicesApplication>
load
public WebServicesApplication load(WebServicesContainer container,
DeploymentContext context)
- Specified by:
load in interface Deployer<WebServicesContainer,WebServicesApplication>- Overrides:
load in class JavaEEDeployer<WebServicesContainer,WebServicesApplication>
Copyright © 2012 GlassFish Community. All Rights Reserved.