@Service(name="jpa")
@Singleton
public class JPASniffer
extends org.glassfish.internal.deployment.GenericSniffer
| Constructor and Description |
|---|
JPASniffer() |
| Modifier and Type | Method and Description |
|---|---|
String[] |
getContainersNames() |
boolean |
handles(org.glassfish.api.deployment.archive.ReadableArchive location)
Returns true if the archive contains persistence.xml as defined by packaging rules of JPA
Tries to getResource("META-INF/persitsence.xml") on current classLoader.
|
protected boolean |
scanForPURootsInLibDir(org.glassfish.api.deployment.archive.ReadableArchive parentArchive,
String libLocation) |
boolean |
supportsArchiveType(org.glassfish.api.deployment.archive.ArchiveType archiveType)
This API is used to help determine if the sniffer should recognize
the current archive.
|
equals, getAnnotationNames, getAnnotationTypes, getContainerModuleNames, getDeploymentConfigurationPaths, getDeploymentConfigurations, getIncompatibleSnifferTypes, getModuleType, getURLPatterns, handles, hashCode, isJavaEE, isUserVisible, setup, tearDownpublic boolean handles(org.glassfish.api.deployment.archive.ReadableArchive location)
handles in interface org.glassfish.api.container.Snifferhandles in class org.glassfish.internal.deployment.GenericSnifferprotected boolean scanForPURootsInLibDir(org.glassfish.api.deployment.archive.ReadableArchive parentArchive,
String libLocation)
public String[] getContainersNames()
public boolean supportsArchiveType(org.glassfish.api.deployment.archive.ArchiveType archiveType)
archiveType - the archive type to checkCopyright © 2018 Eclipse Foundation. All rights reserved.