@Service @Singleton public class ManagedThreadFactoryDeployer extends Object implements ResourceDeployer
| Constructor and Description |
|---|
ManagedThreadFactoryDeployer() |
| 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
ResourceDeployerdeployResource in interface ResourceDeployerresource - a resource object (eg. JmsResource)applicationName - application-namemoduleName - module-nameException - thrown if failpublic void deployResource(Object resource) throws Exception
ResourceDeployerdeployResource in interface ResourceDeployerresource - a resource object (eg. JmsResource)Exception - thrown if failpublic void undeployResource(Object resource) throws Exception
ResourceDeployerundeployResource in interface ResourceDeployerresource - a resource object (eg. JmsResource)Exception - thrown if failpublic void undeployResource(Object resource, String applicationName, String moduleName) throws Exception
ResourceDeployerundeployResource in interface ResourceDeployerresource - a resource object (eg. JmsResource)applicationName - application-namemoduleName - module-nameException - thrown if failpublic void redeployResource(Object resource) throws Exception
ResourceDeployerredeployResource in interface ResourceDeployerresource - a resource objectException - thrown if failpublic void enableResource(Object resource) throws Exception
ResourceDeployerenableResource in interface ResourceDeployerresource - a resource object (eg. JmsResource)Exception - thrown if failpublic void disableResource(Object resource) throws Exception
ResourceDeployerdisableResource in interface ResourceDeployerresource - a resource object (eg. JmsResource)Exception - thrown if failpublic boolean handles(Object resource)
ResourceDeployerhandles in interface ResourceDeployerresource - resource that need to be handledpublic boolean supportsDynamicReconfiguration()
ResourceDeployersupportsDynamicReconfiguration in interface ResourceDeployerpublic Class[] getProxyClassesForDynamicReconfiguration()
ResourceDeployergetProxyClassesForDynamicReconfiguration in interface ResourceDeployerpublic boolean canDeploy(boolean postApplicationDeployment,
Collection<Resource> allResources,
Resource resource)
ResourceDeployercanDeploy in interface ResourceDeployerpostApplicationDeployment - 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 ResourceDeployerResourceConflictExceptionCopyright © 2019. All rights reserved.