com.sun.enterprise.v3.server
Class SnifferManagerImpl

java.lang.Object
  extended by com.sun.enterprise.v3.server.SnifferManagerImpl
All Implemented Interfaces:
SnifferManager

@Service
public class SnifferManagerImpl
extends Object
implements SnifferManager

Provide convenience methods to deal with Sniffers in the system.

Author:
Kohsuke Kawaguchi

Field Summary
protected  org.jvnet.hk2.component.Habitat habitat
           
 
Constructor Summary
SnifferManagerImpl()
           
 
Method Summary
 boolean canBeIsolated(Sniffer sniffer)
           
 boolean containsPrimarySniffer(Collection<? extends Sniffer> sniffers)
           
<T extends Sniffer>
List<T>
getApplicableSniffers(DeploymentContext context, Collection<T> sniffers, boolean checkPath)
           
 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 appType)
           
 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()
          Check if there's any Sniffer installed at all.
 void validateSniffers(Collection<? extends Sniffer> snifferCol, DeploymentContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

habitat

protected org.jvnet.hk2.component.Habitat habitat
Constructor Detail

SnifferManagerImpl

public SnifferManagerImpl()
Method Detail

getSniffers

public Collection<Sniffer> getSniffers()
Returns all the presently registered sniffers

Specified by:
getSniffers in interface SnifferManager
Returns:
Collection (possibly empty but never null) of Sniffer

getCompositeSniffers

public Collection<CompositeSniffer> getCompositeSniffers()
Returns all the presently registered composite sniffers

Specified by:
getCompositeSniffers in interface SnifferManager
Returns:
Collection (possibly empty but never null) of Sniffer

hasNoSniffers

public final boolean hasNoSniffers()
Check if there's any Sniffer installed at all.

Specified by:
hasNoSniffers in interface SnifferManager

getSniffer

public Sniffer getSniffer(String appType)
Specified by:
getSniffer in interface SnifferManager

getSniffers

public 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.

Specified by:
getSniffers in interface SnifferManager
Parameters:
context - the deployment context
Returns:
possibly empty collection of sniffers that handle the passed archive.

canBeIsolated

public boolean canBeIsolated(Sniffer sniffer)
Specified by:
canBeIsolated in interface SnifferManager

getCompositeSniffers

public 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.

Specified by:
getCompositeSniffers in interface SnifferManager
Parameters:
context - deployment context
Returns:
possibly empty collection of sniffers that handle the passed archive.

getApplicableSniffers

public <T extends Sniffer> List<T> getApplicableSniffers(DeploymentContext context,
                                                         Collection<T> sniffers,
                                                         boolean checkPath)

validateSniffers

public void validateSniffers(Collection<? extends Sniffer> snifferCol,
                             DeploymentContext context)

containsPrimarySniffer

public boolean containsPrimarySniffer(Collection<? extends Sniffer> sniffers)


Copyright © 2012. All Rights Reserved.