@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, isUserVisiblepublic boolean handles(ReadableArchive location)
handles in interface Snifferhandles in class GenericSnifferlocation - 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 Sniffersetup in class GenericSniffercontainerHome - is where the container implementation resideslogger - the logger to useIOException - exception if something goes sourpublic void tearDown()
tearDown in interface SniffertearDown in class GenericSnifferpublic String[] getContainersNames()
public Class<? extends Annotation>[] getAnnotationTypes()
GenericSniffergetAnnotationTypes in interface SniffergetAnnotationTypes in class GenericSnifferpublic boolean supportsArchiveType(ArchiveType archiveType)
archiveType - the archive type to checkCopyright © 2019. All rights reserved.