Class EjbSniffer

java.lang.Object
org.glassfish.internal.deployment.GenericSniffer
org.glassfish.ejb.deployment.archive.EjbSniffer
All Implemented Interfaces:
org.glassfish.api.container.Sniffer

@Service(name="Ejb") @Singleton public class EjbSniffer extends org.glassfish.internal.deployment.GenericSniffer
Implementation of the Sniffer for the Ejb container.
Author:
Mahesh Kannan
  • Constructor Details

    • EjbSniffer

      public EjbSniffer()
    • EjbSniffer

      public EjbSniffer(String containerName, String appStigma, String urlPattern)
  • Method Details

    • getContainersNames

      public String[] getContainersNames()
    • 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
    • getAnnotationTypes

      public Class<? extends Annotation>[] getAnnotationTypes()
      Specified by:
      getAnnotationTypes in interface org.glassfish.api.container.Sniffer
      Overrides:
      getAnnotationTypes in class org.glassfish.internal.deployment.GenericSniffer
    • 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
    • getIncompatibleSnifferTypes

      public String[] getIncompatibleSnifferTypes()
      Specified by:
      getIncompatibleSnifferTypes in interface org.glassfish.api.container.Sniffer
      Overrides:
      getIncompatibleSnifferTypes in class org.glassfish.internal.deployment.GenericSniffer
      Returns:
      connector
    • 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 an ejb app.
      Overrides:
      getDeploymentConfigurationPaths in class org.glassfish.internal.deployment.GenericSniffer
      Returns:
      list of the deployment descriptor paths