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