Interface SnifferManager


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

    Modifier and Type
    Method
    Description
    org.glassfish.api.container.Sniffer
    Return a sniffer instance based on its registered name
    Collection<org.glassfish.api.container.Sniffer>
    Returns all the presently registered sniffers
    Collection<org.glassfish.api.container.Sniffer>
    getSniffers(org.glassfish.api.deployment.DeploymentContext context)
    Returns a collection of sniffers that recognized some parts of the passed archive as components their container handle.
    Collection<org.glassfish.api.container.Sniffer>
    getSniffers(org.glassfish.api.deployment.DeploymentContext context, List<URI> uris, org.glassfish.hk2.classmodel.reflect.Types types)
     
    boolean
    Returns true if no sniffer/container is registered in the service locator.
  • Method Details

    • getSniffer

      org.glassfish.api.container.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 service locator.
      Returns:
      true if not sniffer is registered
    • getSniffers

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

      Collection<org.glassfish.api.container.Sniffer> getSniffers(org.glassfish.api.deployment.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.
    • getSniffers

      Collection<org.glassfish.api.container.Sniffer> getSniffers(org.glassfish.api.deployment.DeploymentContext context, List<URI> uris, org.glassfish.hk2.classmodel.reflect.Types types)