org.jboss.classloader.plugins.jdk
Class AbstractJDKChecker

java.lang.Object
  extended by org.jboss.classloader.plugins.jdk.AbstractJDKChecker
All Implemented Interfaces:
JDKChecker

public class AbstractJDKChecker
extends Object
implements JDKChecker

AbstractJDKChecker.

Version:
$Revision: 1.1 $
Author:
Adrian Brock

Constructor Summary
AbstractJDKChecker()
           
 
Method Summary
static Set<Class<?>> getExcluded()
          The excluded classes
protected  Class<?> getRequestingClass(Class<?>[] stack)
          Get the requesting class
 boolean isExcluded(Class<?> clazz)
          Whether the class is excluded
 boolean isJDKRequest(String name)
          Check wether this is a request from the JDK
protected  boolean isJDKRequestingClass(String name, Class<?> requesting)
          Whether the requesting class is from the JDK
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractJDKChecker

public AbstractJDKChecker()
Method Detail

isExcluded

public boolean isExcluded(Class<?> clazz)
Whether the class is excluded

Parameters:
clazz - the class
Returns:
whether the class is excluded

getExcluded

public static Set<Class<?>> getExcluded()
The excluded classes

Returns:
the excluded classes

isJDKRequest

public boolean isJDKRequest(String name)
Description copied from interface: JDKChecker
Check wether this is a request from the JDK

Specified by:
isJDKRequest in interface JDKChecker
Parameters:
name - the class name
Returns:
true when from the JDK

getRequestingClass

protected Class<?> getRequestingClass(Class<?>[] stack)
Get the requesting class

Parameters:
stack - the class stack
Returns:
the requesting class

isJDKRequestingClass

protected boolean isJDKRequestingClass(String name,
                                       Class<?> requesting)
Whether the requesting class is from the JDK

The default implementation returns true if the requesting class is not loaded from a BaseClassLoader

Parameters:
name - the name of the class being loaded
requesting - the requesting class
Returns:
true it is from the JDK


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.