Package org.eclipse.steady.java.monitor
Class ClassNameLoaderFilter
- java.lang.Object
-
- org.eclipse.steady.java.monitor.ClassNameLoaderFilter
-
- All Implemented Interfaces:
LoaderFilter
public class ClassNameLoaderFilter extends Object implements LoaderFilter
Checks whether the provided class loader is of the given type, or whether it is a child of another class loader of that type. Use 'org.apache.catalina.loader.WebappClassLoader', for instance, to only consider classes loaded/traced in the context of Web applications deployed in Tomcat (but not classes loaded by parent class loaders, such as the system or bootstrap loader).
-
-
Constructor Summary
Constructors Constructor Description ClassNameLoaderFilter(String _classname, boolean _accept_childs)Constructor for ClassNameLoaderFilter.
-
-
-
Method Detail
-
accept
public boolean accept(Loader _loader)
accept.
Returns true of the given _loader is accepted by the filter.- Specified by:
acceptin interfaceLoaderFilter- Parameters:
_loader- aLoaderobject.- Returns:
- a boolean.
-
-