Class 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
    • Constructor Detail

      • EarDetector

        public EarDetector()
    • Method Detail

      • 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