org.glassfish.webservices
Class WebServicesDeployer

java.lang.Object
  extended by org.glassfish.javaee.core.deployment.JavaEEDeployer<WebServicesContainer,WebServicesApplication>
      extended by 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

Field Summary
static WebServiceDeploymentNotifier deploymentNotifier
           
 
Fields inherited from class org.glassfish.javaee.core.deployment.JavaEEDeployer
appRegistry, env, habitat, undeploymentVisitor
 
Constructor Summary
WebServicesDeployer()
          Constructor
 
Method Summary
 void clean(DeploymentContext dc)
           
protected  void cleanArtifacts(DeploymentContext deploymentContext)
           
 void downloadFile(java.net.URL httpUrl, java.io.File toFile)
           
static WebServiceDeploymentNotifier getDeploymentNotifier()
           
 MetaData getMetaData()
          Returns the meta data assocated with this Deployer
protected  java.lang.String getModuleType()
           
 WebServicesApplication load(WebServicesContainer container, DeploymentContext context)
           
 java.lang.Object loadMetaData(java.lang.Class type, DeploymentContext dc)
          Loads the meta date associated with the application.
static void moveFile(java.lang.String sourceFile, java.lang.String destFile)
           
 boolean prepare(DeploymentContext dc)
          Prepares the application bits for running in the application server.
 java.net.URL resolveCatalog(java.io.File catalogFile, java.lang.String wsdlFile, WebService ws)
           
protected  void setupJaxWSServiceForDeployment(DeploymentContext dc, WebService ws)
           
 void unload(WebServicesApplication container, DeploymentContext context)
           
 
Methods inherited from class org.glassfish.javaee.core.deployment.JavaEEDeployer
generateArtifacts, getApplicationFromApplicationInfo, getCommonClassPath, getModuleClassPath, getObjectType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

deploymentNotifier

public static final WebServiceDeploymentNotifier deploymentNotifier
Constructor Detail

WebServicesDeployer

public WebServicesDeployer()
Constructor

Method Detail

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.