public abstract class AbstractConnectorResourceDeployer extends GlobalResourceDeployer implements ResourceDeployer
Constructor and Description |
---|
AbstractConnectorResourceDeployer() |
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 |
validatePreservedResource(Application oldApp,
Application newApp,
Resource resource,
Resources allResources) |
static void |
validateResourcesForStaleReference(String appName,
List<Module> staleRars,
Resources resources)
Validates whether the old application has RARs and those are retained in new application.
If the new application does not have any of the old application's RAR, validates whether any module is using the RAR's resources. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
deployResource, deployResource, disableResource, enableResource, getProxyClassesForDynamicReconfiguration, handles, redeployResource, supportsDynamicReconfiguration, undeployResource, undeployResource
public boolean canDeploy(boolean postApplicationDeployment, Collection<Resource> allResources, Resource resource)
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
public static void validateResourcesForStaleReference(String appName, List<Module> staleRars, Resources resources) throws ResourceConflictException
appName
- application-namestaleRars
- List of Stale Resource Adapters (ie., were defined in old app, not in new app)resources
- resources that need to be checked for stale RAR references.org.glassfish.resources.api.ResourceConflictException
- When any of the resource has reference to old RARResourceConflictException
Copyright © 2021. All rights reserved.