Package fish.payara.faces.integration
Class MojarraSniffer
- java.lang.Object
-
- org.glassfish.internal.deployment.GenericSniffer
-
- fish.payara.faces.integration.MojarraSniffer
-
- All Implemented Interfaces:
Sniffer
@Service(name="mojarra-sniffer") @Singleton public class MojarraSniffer extends GenericSniffer
-
-
Field Summary
-
Fields inherited from class org.glassfish.internal.deployment.GenericSniffer
habitat, modulesRegistry
-
-
Constructor Summary
Constructors Constructor Description MojarraSniffer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]getContainersNames()Returns the list of Containers that this Sniffer enables.booleanhandles(DeploymentContext context)Returns true if the passed file or directory is recognized by this composite sniffer.booleansupportsArchiveType(ArchiveType archiveType)This API is used to help determine if the sniffer should recognize the current archive.-
Methods inherited from class org.glassfish.internal.deployment.GenericSniffer
equals, getAnnotationNames, getAnnotationTypes, getContainerModuleNames, getDeploymentConfigurationPaths, getDeploymentConfigurations, getIncompatibleSnifferTypes, getModuleType, getURLPatterns, handles, hashCode, isJavaEE, isUserVisible, setup, tearDown
-
-
-
-
Method Detail
-
getContainersNames
public String[] getContainersNames()
Description copied from interface:SnifferReturns 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
-
supportsArchiveType
public boolean supportsArchiveType(ArchiveType archiveType)
Description copied from interface:SnifferThis 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
-
handles
public boolean handles(DeploymentContext context)
Description copied from class:GenericSnifferReturns true if the passed file or directory is recognized by this composite sniffer.- Specified by:
handlesin interfaceSniffer- Overrides:
handlesin classGenericSniffer- Parameters:
context- deployment context- Returns:
- true if the location is recognized by this sniffer
-
-