Class AbstractConnectorResourceDeployer
- java.lang.Object
-
- org.glassfish.resources.api.GlobalResourceDeployer
-
- com.sun.enterprise.resource.deployer.AbstractConnectorResourceDeployer
-
- All Implemented Interfaces:
ResourceDeployer
- Direct Known Subclasses:
AdminObjectResourceDeployer
,ConnectorConnectionPoolDeployer
,ConnectorResourceDeployer
,ConnectorWorkSecurityMapDeployer
,ResourceAdapterConfigDeployer
public abstract class AbstractConnectorResourceDeployer extends GlobalResourceDeployer implements ResourceDeployer
-
-
Constructor Summary
Constructors Constructor Description AbstractConnectorResourceDeployer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.glassfish.resourcebase.resources.api.ResourceDeployer
deployResource, deployResource, disableResource, enableResource, getProxyClassesForDynamicReconfiguration, handles, redeployResource, supportsDynamicReconfiguration, undeployResource, undeployResource
-
-
-
-
Method Detail
-
canDeploy
public 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.- Specified by:
canDeploy
in interfaceResourceDeployer
- Parameters:
postApplicationDeployment
- post-application-deploymentallResources
- resources collection in which the resource being validated is present.resource
- resource to be validated- Returns:
- boolean
-
validatePreservedResource
public void validatePreservedResource(Application oldApp, Application newApp, Resource resource, Resources allResources) throws ResourceConflictException
- Specified by:
validatePreservedResource
in interfaceResourceDeployer
- Throws:
ResourceConflictException
-
validateResourcesForStaleReference
public static void validateResourcesForStaleReference(String appName, List<Module> staleRars, Resources resources) throws ResourceConflictException
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. If used, fail with ResourceConflictException
as the RAR's resource is not valid anymore.- Parameters:
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.- Throws:
org.glassfish.resources.api.ResourceConflictException
- When any of the resource has reference to old RARResourceConflictException
-
-