@Service(name="jpa") @Singleton public class JPASniffer extends GenericSniffer
habitat, modulesRegistry| Constructor and Description |
|---|
JPASniffer() |
| Modifier and Type | Method and Description |
|---|---|
String[] |
getContainersNames()
Returns the list of Containers that this Sniffer enables.
|
boolean |
handles(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(ReadableArchive parentArchive,
String libLocation) |
boolean |
supportsArchiveType(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(ReadableArchive location)
handles in interface Snifferhandles in class GenericSnifferlocation - the file or directory to exploreprotected boolean scanForPURootsInLibDir(ReadableArchive parentArchive, String libLocation)
public String[] getContainersNames()
Snifferpublic boolean supportsArchiveType(ArchiveType archiveType)
archiveType - the archive type to checkCopyright © 2017. All rights reserved.