Class JPACompositeSniffer

  • All Implemented Interfaces:
    Sniffer

    @Service(name="jpaCompositeSniffer")
    @Singleton
    public class JPACompositeSniffer
    extends JPASniffer
    Sniffer handling ears
    Author:
    Mitesh Meswani
    • Constructor Detail

      • JPACompositeSniffer

        public JPACompositeSniffer()
    • Method Detail

      • handles

        public boolean handles​(DeploymentContext context)
        Decides whether we have any pu roots at ear level
        Specified by:
        handles in interface Sniffer
        Overrides:
        handles in class GenericSniffer
        Parameters:
        context - deployment context
        Returns:
        true if the location is recognized by this sniffer
      • 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.
        Specified by:
        supportsArchiveType in interface Sniffer
        Overrides:
        supportsArchiveType in class JPASniffer
        Parameters:
        archiveType - the archive type to check
        Returns:
        whether the sniffer supports the archive type