org.glassfish.internal.deployment
Interface SnifferManager


@Contract
public interface SnifferManager

Service for easy access to sniffers.


Method Summary
 boolean canBeIsolated(Sniffer sniffer)
          Return whether a sniffer supports to be isolated during deployment per use request.
 Collection<CompositeSniffer> getCompositeSniffers()
          Returns all the presently registered composite sniffers
 Collection<CompositeSniffer> getCompositeSniffers(DeploymentContext context)
          Returns a collection of composite sniffers that recognized some parts of the passed archive as components their container handle.
 Sniffer getSniffer(String name)
          Return a sniffer instance based on its registered name
 Collection<Sniffer> getSniffers()
          Returns all the presently registered sniffers
 Collection<Sniffer> getSniffers(DeploymentContext context)
          Returns a collection of sniffers that recognized some parts of the passed archive as components their container handle.
 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

getCompositeSniffers

Collection<CompositeSniffer> getCompositeSniffers()
Returns all the presently registered composite 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.

canBeIsolated

boolean canBeIsolated(Sniffer sniffer)
Return whether a sniffer supports to be isolated during deployment per use request.

Parameters:
sniffer - the sniffer to test
Returns:
true if a sniffer can by specified by the user when deploying

getCompositeSniffers

Collection<CompositeSniffer> getCompositeSniffers(DeploymentContext context)
Returns a collection of composite 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 - deployment context
Returns:
possibly empty collection of sniffers that handle the passed archive.


Copyright © 2012 GlassFish Community. All Rights Reserved.