@Service @Singleton public class ContextServiceDeployer extends Object implements ResourceDeployer
Constructor and Description |
---|
ContextServiceDeployer() |
Modifier and Type | Method and Description |
---|---|
boolean |
canDeploy(boolean postApplicationDeployment,
Collection<Resource> allResources,
Resource resource)
A deployer can indicate whether a particular resource can be deployed before
application deployment
Used in case of application-scoped-resources
eg: Embedded RAR resources are created after application (that has embedded .rar)
deployment.
|
void |
deployResource(Object resource)
Deploy the resource into the server's runtime naming context
|
void |
deployResource(Object resource,
String applicationName,
String moduleName)
Deploy the resource into the server's runtime naming context
This API is used in cases where the "config" bean is not
yet persisted in domain.xml and is part of the "config" transaction.
|
void |
disableResource(Object resource)
Disable the resource in the server's runtime naming context
|
void |
enableResource(Object resource)
Enable the resource in the server's runtime naming context
|
Class[] |
getProxyClassesForDynamicReconfiguration()
List of classes which need to be proxied for dynamic-reconfiguration
|
boolean |
handles(Object resource)
Indicates whether a particular resource deployer can handle the
resource in question
|
void |
redeployResource(Object resource)
Redeploy the resource into the server's runtime naming context
|
boolean |
supportsDynamicReconfiguration()
Indicates whether the resource deployer can handle
transparent-dynamic-reconfiguration of resource
|
void |
undeployResource(Object resource)
Undeploy the resource from the server's runtime naming context
|
void |
undeployResource(Object resource,
String applicationName,
String moduleName)
Undeploy the resource from the server's runtime naming context
|
void |
validatePreservedResource(Application oldApp,
Application newApp,
Resource resource,
Resources allResources) |
public void deployResource(Object resource, String applicationName, String moduleName) throws Exception
ResourceDeployer
deployResource
in interface ResourceDeployer
resource
- a resource object (eg. JmsResource)applicationName
- application-namemoduleName
- module-nameException
- thrown if failpublic void deployResource(Object resource) throws Exception
ResourceDeployer
deployResource
in interface ResourceDeployer
resource
- a resource object (eg. JmsResource)Exception
- thrown if failpublic void undeployResource(Object resource) throws Exception
ResourceDeployer
undeployResource
in interface ResourceDeployer
resource
- a resource object (eg. JmsResource)Exception
- thrown if failpublic void undeployResource(Object resource, String applicationName, String moduleName) throws Exception
ResourceDeployer
undeployResource
in interface ResourceDeployer
resource
- a resource object (eg. JmsResource)applicationName
- application-namemoduleName
- module-nameException
- thrown if failpublic void redeployResource(Object resource) throws Exception
ResourceDeployer
redeployResource
in interface ResourceDeployer
resource
- a resource objectException
- thrown if failpublic void enableResource(Object resource) throws Exception
ResourceDeployer
enableResource
in interface ResourceDeployer
resource
- a resource object (eg. JmsResource)Exception
- thrown if failpublic void disableResource(Object resource) throws Exception
ResourceDeployer
disableResource
in interface ResourceDeployer
resource
- a resource object (eg. JmsResource)Exception
- thrown if failpublic boolean handles(Object resource)
ResourceDeployer
handles
in interface ResourceDeployer
resource
- resource that need to be handledpublic boolean supportsDynamicReconfiguration()
ResourceDeployer
supportsDynamicReconfiguration
in interface ResourceDeployer
public Class[] getProxyClassesForDynamicReconfiguration()
ResourceDeployer
getProxyClassesForDynamicReconfiguration
in interface ResourceDeployer
public boolean canDeploy(boolean postApplicationDeployment, Collection<Resource> allResources, Resource resource)
ResourceDeployer
canDeploy
in interface ResourceDeployer
postApplicationDeployment
- post-application-deploymentallResources
- resources collection in which the resource being validated is present.resource
- resource to be validatedpublic void validatePreservedResource(Application oldApp, Application newApp, Resource resource, Resources allResources) throws ResourceConflictException
validatePreservedResource
in interface ResourceDeployer
ResourceConflictException
Copyright © 2020. All rights reserved.