com.mentorgen.tools.profile.instrument.clfilter
Class StandardClassLoaderFilter

java.lang.Object
  extended by com.mentorgen.tools.profile.instrument.clfilter.StandardClassLoaderFilter
All Implemented Interfaces:
ClassLoaderFilter

public class StandardClassLoaderFilter
extends java.lang.Object
implements ClassLoaderFilter

The filter for standalone applications.

Author:
Andrew Wilcox
See Also:
ClassLoaderFilter

Constructor Summary
StandardClassLoaderFilter()
           
 
Method Summary
 boolean accept(java.lang.ClassLoader loader)
          Tries to determine if the given ClassLoader is the "application classloader".
 boolean canFilter()
          This method examines the environment to determine if it can be used to filter by ClassLoader.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandardClassLoaderFilter

public StandardClassLoaderFilter()
Method Detail

canFilter

public boolean canFilter()
Description copied from interface: ClassLoaderFilter
This method examines the environment to determine if it can be used to filter by ClassLoader. For example, a realization of this class for Tomcat might look for Tomcat's VM parameters to determine if the Tomcat is running in the VM.

Specified by:
canFilter in interface ClassLoaderFilter

accept

public boolean accept(java.lang.ClassLoader loader)
Description copied from interface: ClassLoaderFilter
Tries to determine if the given ClassLoader is the "application classloader". What this means exactly is dependent on the type of application (that is, this is different for Tomcat than for a standalone app)

Specified by:
accept in interface ClassLoaderFilter