Package com.sun.enterprise.security.ee
Class SecuritySniffer
- java.lang.Object
-
- org.glassfish.internal.deployment.GenericSniffer
-
- com.sun.enterprise.security.ee.SecuritySniffer
-
- All Implemented Interfaces:
Sniffer
@Service(name="Security") public class SecuritySniffer extends GenericSniffer
SecuritySniffer for security related activities
-
-
Field Summary
-
Fields inherited from class org.glassfish.internal.deployment.GenericSniffer
modulesRegistry
-
-
Constructor Summary
Constructors Constructor Description SecuritySniffer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.booleanhandles(ReadableArchive location)Returns true if the passed file or directory is recognized by this instance.com.sun.enterprise.module.HK2Module[]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 subsystembooleansupportsArchiveType(ArchiveType archiveType)This API is used to help determine if the sniffer should recognize the current archive.voidtearDown()Tears down a container, remove all imported libraries from the module subsystem.-
Methods inherited from class org.glassfish.internal.deployment.GenericSniffer
equals, getAnnotationNames, getContainerModuleNames, getDeploymentConfigurationPaths, getDeploymentConfigurations, getIncompatibleSnifferTypes, getModuleType, getURLPatterns, handles, hashCode, isJavaEE, isUserVisible
-
-
-
-
Method Detail
-
handles
public boolean handles(ReadableArchive location)
Returns true if the passed file or directory is recognized by this instance.- Specified by:
handlesin interfaceSniffer- Overrides:
handlesin classGenericSniffer- Parameters:
location- the file or directory to explore- Returns:
- true if this sniffer handles this application type
-
setup
public com.sun.enterprise.module.HK2Module[] setup(String containerHome, Logger logger) throws IOException
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 aModuleDefinitionfor 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.- Specified by:
setupin interfaceSniffer- Overrides:
setupin classGenericSniffer- Parameters:
containerHome- is where the container implementation resideslogger- the logger to use- Returns:
- the module definition of the core container implementation.
- Throws:
IOException- exception if something goes sour
-
tearDown
public void tearDown()
Tears down a container, remove all imported libraries from the module subsystem.- Specified by:
tearDownin interfaceSniffer- Overrides:
tearDownin classGenericSniffer
-
getContainersNames
public String[] getContainersNames()
Returns the list of Containers that this Sniffer enables. The runtime will look up each container implementing using the names provided in the habitat.- Returns:
- list of container names known to the habitat for this sniffer
-
getAnnotationTypes
public Class<? extends Annotation>[] getAnnotationTypes()
Description copied from class:GenericSnifferReturns the list of annotations types that this sniffer is interested in. If an application bundle contains at least one class annotated with one of the returned annotations, the deployment process will not call the handles method but will invoke the containers deployers as if the handles method had been called and returned true.- Specified by:
getAnnotationTypesin interfaceSniffer- Overrides:
getAnnotationTypesin classGenericSniffer- Returns:
- list of annotations this sniffer is interested in.
-
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.- Parameters:
archiveType- the archive type to check- Returns:
- whether the sniffer supports the archive type
-
-