Interface SnifferManager
-
- All Known Implementing Classes:
SnifferManagerImpl
@Contract public interface SnifferManager
Service for easy access to sniffers.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Sniffer
getSniffer(String name)
Return a sniffer instance based on its registered nameCollection<Sniffer>
getSniffers()
Returns all the presently registered sniffersCollection<Sniffer>
getSniffers(DeploymentContext context)
Returns a collection of sniffers that recognized some parts of the passed archive as components their container handle.Collection<Sniffer>
getSniffers(DeploymentContext context, List<URI> uris, org.glassfish.hk2.classmodel.reflect.Types types)
boolean
hasNoSniffers()
Returns true if no sniffer/container is registered in the habitat.
-
-
-
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.
-
getSniffers
Collection<Sniffer> getSniffers(DeploymentContext context, List<URI> uris, org.glassfish.hk2.classmodel.reflect.Types types)
-
-