Class ResourcesSniffer
- java.lang.Object
-
- org.glassfish.internal.deployment.GenericSniffer
-
- org.glassfish.resources.connector.ResourcesSniffer
-
- All Implemented Interfaces:
Sniffer
- Direct Known Subclasses:
PayaraResourcesSniffer
@Service(name="resources") public class ResourcesSniffer extends GenericSniffer
Sniffer to detect glassfish-resources.xml in standalone archives- Author:
- Jagadish Ramu
-
-
Field Summary
-
Fields inherited from class org.glassfish.internal.deployment.GenericSniffer
habitat, modulesRegistry
-
-
Constructor Summary
Constructors Modifier Constructor Description ResourcesSniffer()
protected
ResourcesSniffer(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 a connector app.String
getModuleType()
Returns the Module typeboolean
handles(ReadableArchive archive)
Returns true if the passed file or directory is recognized by this instance.boolean
supportsArchiveType(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:
handles
in interfaceSniffer
- Overrides:
handles
in 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:
getModuleType
in interfaceSniffer
- Overrides:
getModuleType
in 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 a connector app.- Overrides:
getDeploymentConfigurationPaths
in classGenericSniffer
- Returns:
- list of the deployment descriptor paths
-
-