Class ResourcesCompositeSniffer
- java.lang.Object
-
- org.glassfish.internal.deployment.GenericSniffer
-
- org.glassfish.resources.connector.ResourcesCompositeSniffer
-
- All Implemented Interfaces:
Sniffer
- Direct Known Subclasses:
PayaraResourcesCompositeSniffer
@Service(name="resources_ear") public class ResourcesCompositeSniffer extends GenericSniffer
Sniffer to detect glassfish-resources.xml(s) in composite archives- Author:
- Jagadish Ramu
-
-
Field Summary
-
Fields inherited from class org.glassfish.internal.deployment.GenericSniffer
habitat, modulesRegistry
-
-
Constructor Summary
Constructors Modifier Constructor Description ResourcesCompositeSniffer()protectedResourcesCompositeSniffer(String containerName, String appStigma)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]getContainersNames()Returns the list of Containers that this Sniffer enables.protected List<String>getDeploymentConfigurationPaths()Returns the descriptor paths that might exist in an ear.StringgetModuleType()Returns the Module typebooleanhandles(ReadableArchive archive)Returns true if the passed file or directory is recognized by this instance.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, getDeploymentConfigurations, getIncompatibleSnifferTypes, getURLPatterns, handles, hashCode, isJavaEE, isUserVisible, setup, tearDown
-
-
-
-
Method Detail
-
handles
public boolean handles(ReadableArchive archive)
Returns true if the passed file or directory is recognized by this instance.- Specified by:
handlesin interfaceSniffer- Overrides:
handlesin classGenericSniffer- Parameters:
archive- the file or directory to explore- Returns:
- true if this sniffer handles this application type
-
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
-
getModuleType
public String getModuleType()
Returns the Module type- Specified by:
getModuleTypein interfaceSniffer- Overrides:
getModuleTypein classGenericSniffer- Returns:
- the container name
-
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
-
getDeploymentConfigurationPaths
protected List<String> getDeploymentConfigurationPaths()
Returns the descriptor paths that might exist in an ear.- Overrides:
getDeploymentConfigurationPathsin classGenericSniffer- Returns:
- list of the deployment descriptor paths
-
-