Class EarDetector

java.lang.Object
org.glassfish.javaee.full.deployment.EarDetector
All Implemented Interfaces:
org.glassfish.api.deployment.archive.ArchiveDetector

@Service(name="ear") @Singleton public class EarDetector extends Object implements org.glassfish.api.deployment.archive.ArchiveDetector
Detects ear type archives. It's rank can be set using system property EAR_DETECTOR_RANK_PROP. Default rank is DEFAULT_EAR_DETECTOR_RANK.
Author:
sanjeeb.sahoo@oracle.com
  • Field Details

  • Constructor Details

    • EarDetector

      public EarDetector()
  • Method Details

    • rank

      public int rank()
      Specified by:
      rank in interface org.glassfish.api.deployment.archive.ArchiveDetector
    • handles

      public boolean handles(org.glassfish.api.deployment.archive.ReadableArchive archive) throws IOException
      Specified by:
      handles in interface org.glassfish.api.deployment.archive.ArchiveDetector
      Throws:
      IOException
    • getArchiveHandler

      public org.glassfish.api.deployment.archive.ArchiveHandler getArchiveHandler()
      Specified by:
      getArchiveHandler in interface org.glassfish.api.deployment.archive.ArchiveDetector
    • getArchiveType

      public org.glassfish.api.deployment.archive.ArchiveType getArchiveType()
      Specified by:
      getArchiveType in interface org.glassfish.api.deployment.archive.ArchiveDetector