Class MojarraSniffer

  • All Implemented Interfaces:
    Sniffer

    @Service(name="mojarra-sniffer")
    @Singleton
    public class MojarraSniffer
    extends GenericSniffer
    • Constructor Detail

      • MojarraSniffer

        public MojarraSniffer()
    • Method Detail

      • getContainersNames

        public String[] getContainersNames()
        Description copied from interface: Sniffer
        Returns the list of Containers that this Sniffer enables. The runtime will look up each container implementing using the names provided in the habitat.
        Returns:
        list of container names known to the habitat for this sniffer
      • supportsArchiveType

        public boolean supportsArchiveType​(ArchiveType archiveType)
        Description copied from interface: Sniffer
        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
      • handles

        public boolean handles​(DeploymentContext context)
        Description copied from class: GenericSniffer
        Returns true if the passed file or directory is recognized by this composite sniffer.
        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