@Service public class WebServicesDeployer extends JavaEEDeployer<WebServicesContainer,WebServicesApplication>
Modifier and Type | Field and Description |
---|---|
static WebServiceDeploymentNotifier |
deploymentNotifier |
appRegistry, env, habitat, undeploymentVisitor
Constructor and Description |
---|
WebServicesDeployer()
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
clean(DeploymentContext dc)
Clean any files and artifacts that were created during the execution
of the prepare method.
|
protected void |
cleanArtifacts(DeploymentContext deploymentContext) |
void |
downloadFile(URL httpUrl,
File toFile) |
static WebServiceDeploymentNotifier |
getDeploymentNotifier() |
MetaData |
getMetaData()
Returns the meta data assocated with this Deployer
|
WebServicesApplication |
load(WebServicesContainer container,
DeploymentContext context)
Loads a previously prepared application in its execution environment and
return a ContractProvider instance that will identify this environment in
future communications with the application's container runtime.
|
Object |
loadMetaData(Class type,
DeploymentContext dc)
Loads the meta date associated with the application.
|
static void |
moveFile(String sourceFile,
String destFile) |
boolean |
prepare(DeploymentContext dc)
Prepares the application bits for running in the application server.
|
URL |
resolveCatalog(File catalogFile,
String wsdlFile,
WebService ws) |
protected void |
setupJaxWSServiceForDeployment(DeploymentContext dc,
WebService ws) |
void |
unload(WebServicesApplication container,
DeploymentContext context)
Unload or stop a previously running application identified with the
ContractProvider instance.
|
generateArtifacts, getApplicationFromApplicationInfo, getCommonClassPath, getModuleClassPath, getObjectType
public static final WebServiceDeploymentNotifier deploymentNotifier
public static WebServiceDeploymentNotifier getDeploymentNotifier()
public boolean prepare(DeploymentContext dc)
prepare
in interface Deployer<WebServicesContainer,WebServicesApplication>
prepare
in class JavaEEDeployer<WebServicesContainer,WebServicesApplication>
dc
- deployment contextprotected void cleanArtifacts(DeploymentContext deploymentContext) throws DeploymentException
DeploymentException
protected void setupJaxWSServiceForDeployment(DeploymentContext dc, WebService ws) throws DeploymentException
DeploymentException
public Object loadMetaData(Class type, DeploymentContext dc)
loadMetaData
in interface Deployer<WebServicesContainer,WebServicesApplication>
loadMetaData
in class JavaEEDeployer<WebServicesContainer,WebServicesApplication>
type
- type of metadata that this deployer has declared providing.dc
- deployment contextpublic MetaData getMetaData()
getMetaData
in interface Deployer<WebServicesContainer,WebServicesApplication>
getMetaData
in class JavaEEDeployer<WebServicesContainer,WebServicesApplication>
public URL resolveCatalog(File catalogFile, String wsdlFile, WebService ws) throws DeploymentException
DeploymentException
public static void moveFile(String sourceFile, String destFile) throws IOException
IOException
public void unload(WebServicesApplication container, DeploymentContext context)
Deployer
container
- instance to be stoppedcontext
- of the undeploymentpublic void clean(DeploymentContext dc)
JavaEEDeployer
clean
in interface Deployer<WebServicesContainer,WebServicesApplication>
clean
in class JavaEEDeployer<WebServicesContainer,WebServicesApplication>
dc
- deployment contextpublic WebServicesApplication load(WebServicesContainer container, DeploymentContext context)
JavaEEDeployer
load
in interface Deployer<WebServicesContainer,WebServicesApplication>
load
in class JavaEEDeployer<WebServicesContainer,WebServicesApplication>
container
- in which the application will residecontext
- of the deploymentCopyright © 2018. All rights reserved.