Class WeldCompositeSniffer

  • All Implemented Interfaces:
    Sniffer

    @Service(name="weldCompositeSniffer")
    @Singleton
    public class WeldCompositeSniffer
    extends WeldSniffer
    This sniffer determines if there are any beans.xml at the ear level.
    • Constructor Detail

      • WeldCompositeSniffer

        public WeldCompositeSniffer()
    • Method Detail

      • handles

        public boolean handles​(DeploymentContext context)
        Description copied from class: WeldSniffer
        Returns true if the archive contains beans.xml as defined by packaging rules of Weld
        Specified by:
        handles in interface Sniffer
        Overrides:
        handles in class WeldSniffer
        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 WeldSniffer
        Parameters:
        archiveType - the archive type to check
        Returns:
        whether the sniffer supports the archive type