Interface SnifferManager
-
@Contract public interface SnifferManagerService for easy access to sniffers.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.glassfish.api.container.SniffergetSniffer(String name)Return a sniffer instance based on its registered nameCollection<org.glassfish.api.container.Sniffer>getSniffers()Returns all the presently registered sniffersCollection<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)booleanhasNoSniffers()Returns true if no sniffer/container is registered in the habitat.
-
-
-
Method Detail
-
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 habitat.- 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)
-
-