@Service(name="Security") public class SecuritySniffer extends GenericSniffer
modulesRegistry
Constructor and Description |
---|
SecuritySniffer() |
Modifier and Type | Method and Description |
---|---|
Class<? extends Annotation>[] |
getAnnotationTypes()
Returns the list of annotations types that this sniffer is interested in.
|
String[] |
getContainersNames()
Returns the list of Containers that this Sniffer enables.
|
boolean |
handles(ReadableArchive location)
Returns true if the passed file or directory is recognized by this instance.
|
com.sun.enterprise.module.Module[] |
setup(String containerHome,
Logger logger)
Sets up the container libraries so that any imported bundle from the connector jar file will now be known to the
module subsystem
This method returns a
ModuleDefinition for the module containing the core
implementation of the container. |
boolean |
supportsArchiveType(ArchiveType archiveType)
This API is used to help determine if the sniffer should recognize the current archive.
|
void |
tearDown()
Tears down a container, remove all imported libraries from the module subsystem.
|
equals, getAnnotationNames, getContainerModuleNames, getDeploymentConfigurationPaths, getDeploymentConfigurations, getIncompatibleSnifferTypes, getModuleType, getURLPatterns, handles, hashCode, isJavaEE, isUserVisible
public boolean handles(ReadableArchive location)
handles
in interface Sniffer
handles
in class GenericSniffer
location
- the file or directory to explorepublic com.sun.enterprise.module.Module[] setup(String containerHome, Logger logger) throws IOException
ModuleDefinition
for the module containing the core
implementation of the container. That means that this module will be locked as long as there is at least one module
loaded in the associated container.setup
in interface Sniffer
setup
in class GenericSniffer
containerHome
- is where the container implementation resideslogger
- the logger to useIOException
- exception if something goes sourpublic void tearDown()
tearDown
in interface Sniffer
tearDown
in class GenericSniffer
public String[] getContainersNames()
public Class<? extends Annotation>[] getAnnotationTypes()
GenericSniffer
getAnnotationTypes
in interface Sniffer
getAnnotationTypes
in class GenericSniffer
public boolean supportsArchiveType(ArchiveType archiveType)
archiveType
- the archive type to checkCopyright © 2019. All rights reserved.