Class JPACompositeSniffer
- java.lang.Object
-
- org.glassfish.internal.deployment.GenericSniffer
-
- org.glassfish.persistence.jpaconnector.JPASniffer
-
- org.glassfish.persistence.jpaconnector.JPACompositeSniffer
-
- All Implemented Interfaces:
Sniffer
@Service(name="jpaCompositeSniffer") @Singleton public class JPACompositeSniffer extends JPASniffer
Sniffer handling ears- Author:
- Mitesh Meswani
-
-
Field Summary
-
Fields inherited from class org.glassfish.internal.deployment.GenericSniffer
habitat, modulesRegistry
-
-
Constructor Summary
Constructors Constructor Description JPACompositeSniffer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
handles(DeploymentContext context)
Decides whether we have any pu roots at ear levelboolean
supportsArchiveType(ArchiveType archiveType)
This API is used to help determine if the sniffer should recognize the current archive.-
Methods inherited from class org.glassfish.persistence.jpaconnector.JPASniffer
getContainersNames, handles, scanForPURootsInLibDir
-
Methods inherited from class org.glassfish.internal.deployment.GenericSniffer
equals, getAnnotationNames, getAnnotationTypes, getContainerModuleNames, getDeploymentConfigurationPaths, getDeploymentConfigurations, getIncompatibleSnifferTypes, getModuleType, getURLPatterns, hashCode, isJavaEE, isUserVisible, setup, tearDown
-
-
-
-
Method Detail
-
handles
public boolean handles(DeploymentContext context)
Decides whether we have any pu roots at ear level- Specified by:
handles
in interfaceSniffer
- Overrides:
handles
in classGenericSniffer
- Parameters:
context
- deployment context- Returns:
- true if the location is recognized by this sniffer
-
supportsArchiveType
public boolean supportsArchiveType(ArchiveType archiveType)
This API is used to help determine if the sniffer should recognize the current archive. If the sniffer does not support the archive type associated with the current deployment, the sniffer should not recognize the archive.- Specified by:
supportsArchiveType
in interfaceSniffer
- Overrides:
supportsArchiveType
in classJPASniffer
- Parameters:
archiveType
- the archive type to check- Returns:
- whether the sniffer supports the archive type
-
-