public class StandardClassLoaderFilter extends java.lang.Object implements ClassLoaderFilter
ClassLoaderFilter| Constructor and Description |
|---|
StandardClassLoaderFilter() |
| Modifier and Type | Method and Description |
|---|---|
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. |
public boolean canFilter()
ClassLoaderFilterClassLoader.
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.canFilter in interface ClassLoaderFilterpublic boolean accept(java.lang.ClassLoader loader)
ClassLoaderFilterClassLoader
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)accept in interface ClassLoaderFilter