Interface SnifferManager

  • All Known Implementing Classes:
    SnifferManagerImpl

    @Contract
    public interface SnifferManager
    Service for easy access to sniffers.
    • Method Detail

      • getSniffer

        Sniffer getSniffer​(String name)
        Return a sniffer instance based on its registered name
        Parameters:
        name - the sniffer service registration name
        Returns:
        the sniffer instance of null if not found.
      • hasNoSniffers

        boolean hasNoSniffers()
        Returns true if no sniffer/container is registered in the habitat.
        Returns:
        true if not sniffer is registered
      • getSniffers

        Collection<Sniffer> getSniffers()
        Returns all the presently registered sniffers
        Returns:
        Collection (possibly empty but never null) of Sniffer
      • getSniffers

        Collection<Sniffer> getSniffers​(DeploymentContext context)
        Returns a collection of sniffers that recognized some parts of the passed archive as components their container handle. If no sniffer recognize the passed archive, an empty collection is returned.
        Parameters:
        context - the deployment context
        Returns:
        possibly empty collection of sniffers that handle the passed archive.