@Contract
public interface ResourceDeployer
| 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) |
void deployResource(Object resource, String applicationName, String moduleName) throws Exception
resource - a resource object (eg. JmsResource)applicationName - application-namemoduleName - module-nameException - thrown if failvoid deployResource(Object resource) throws Exception
resource - a resource object (eg. JmsResource)Exception - thrown if failvoid undeployResource(Object resource) throws Exception
resource - a resource object (eg. JmsResource)Exception - thrown if failvoid undeployResource(Object resource, String applicationName, String moduleName) throws Exception
resource - a resource object (eg. JmsResource)applicationName - application-namemoduleName - module-nameException - thrown if failvoid redeployResource(Object resource) throws Exception
resource - a resource objectException - thrown if failvoid enableResource(Object resource) throws Exception
resource - a resource object (eg. JmsResource)Exception - thrown if failvoid disableResource(Object resource) throws Exception
resource - a resource object (eg. JmsResource)Exception - thrown if failboolean handles(Object resource)
resource - resource that need to be handledboolean supportsDynamicReconfiguration()
Class[] getProxyClassesForDynamicReconfiguration()
boolean canDeploy(boolean postApplicationDeployment,
Collection<Resource> allResources,
Resource resource)
postApplicationDeployment - post-application-deploymentallResources - resources collection in which the resource being validated is present.resource - resource to be validatedvoid validatePreservedResource(Application oldApp, Application newApp, Resource resource, Resources allResources) throws ResourceConflictException
ResourceConflictExceptionCopyright © 2019. All rights reserved.