Class EarSniffer

java.lang.Object
org.glassfish.internal.deployment.GenericSniffer
org.glassfish.javaee.full.deployment.EarSniffer
All Implemented Interfaces:
org.glassfish.api.container.Sniffer

@Service(name="ear") public class EarSniffer extends org.glassfish.internal.deployment.GenericSniffer
Ear sniffers snifs ear files.
Author:
Jerome Dochez
  • Field Summary

    Fields inherited from class org.glassfish.internal.deployment.GenericSniffer

    habitat, modulesRegistry
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    protected List<String>
    Returns the descriptor paths that might exist at the root of the ear.
    boolean
    handles(org.glassfish.api.deployment.archive.ReadableArchive location)
    Returns true if the passed file or directory is recognized by this instance.
    boolean
    handles(org.glassfish.api.deployment.DeploymentContext context)
    Returns true if the passed file or directory is recognized by this composite sniffer.
    boolean
     
    boolean
     
    boolean
    supportsArchiveType(org.glassfish.api.deployment.archive.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, getModuleType, getURLPatterns, hashCode, setup, tearDown

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • EarSniffer

      public EarSniffer()
  • Method Details

    • getContainersNames

      public String[] getContainersNames()
    • handles

      public boolean handles(org.glassfish.api.deployment.DeploymentContext context)
      Returns true if the passed file or directory is recognized by this composite sniffer.
      Specified by:
      handles in interface org.glassfish.api.container.Sniffer
      Overrides:
      handles in class org.glassfish.internal.deployment.GenericSniffer
      Parameters:
      context - deployment context
      Returns:
      true if the location is recognized by this sniffer
    • handles

      public boolean handles(org.glassfish.api.deployment.archive.ReadableArchive location)
      Returns true if the passed file or directory is recognized by this instance.
      Specified by:
      handles in interface org.glassfish.api.container.Sniffer
      Overrides:
      handles in class org.glassfish.internal.deployment.GenericSniffer
      Parameters:
      location - the file or directory to explore
      Returns:
      true if this sniffer handles this application type
    • isUserVisible

      public boolean isUserVisible()
      Specified by:
      isUserVisible in interface org.glassfish.api.container.Sniffer
      Overrides:
      isUserVisible in class org.glassfish.internal.deployment.GenericSniffer
    • isJakartaEE

      public boolean isJakartaEE()
      Specified by:
      isJakartaEE in interface org.glassfish.api.container.Sniffer
      Overrides:
      isJakartaEE in class org.glassfish.internal.deployment.GenericSniffer
    • supportsArchiveType

      public boolean supportsArchiveType(org.glassfish.api.deployment.archive.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 at the root of the ear.
      Overrides:
      getDeploymentConfigurationPaths in class org.glassfish.internal.deployment.GenericSniffer
      Returns:
      list of the deployment descriptor paths