Class 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 Detail

      • ClassNameLoaderFilter

        public ClassNameLoaderFilter​(String _classname,
                                     boolean _accept_childs)

        Constructor for ClassNameLoaderFilter.

        Parameters:
        _classname - a String object.
        _accept_childs - a boolean.
    • Method Detail

      • accept

        public boolean accept​(Loader _loader)

        accept.

        Returns true of the given _loader is accepted by the filter.
        Specified by:
        accept in interface LoaderFilter
        Parameters:
        _loader - a Loader object.
        Returns:
        a boolean.