org.jboss.classloader.spi.base
Class ClassLoaderInformation

java.lang.Object
  extended by org.jboss.classloader.spi.base.ClassLoaderInformation

public class ClassLoaderInformation
extends Object

ClassLoaderInformation.

Version:
$Revision: 1.1 $
Author:
Adrian Brock

Constructor Summary
ClassLoaderInformation(BaseClassLoader classLoader, BaseClassLoaderPolicy policy, int order)
          Create a new ClassLoaderInformation.
 
Method Summary
 void blackListClass(String name)
          Blacklist a class
 void blackListResource(String name)
          Blacklist a resource
 void cacheLoader(String name, Loader loader)
          Cache a loader for a class
 void cacheResource(String name, URL url)
          Cache a url for a resource
 void clearBlackList(String name)
          Cleans the entry with the given name from the blackList
 void flushCaches()
          Flush the caches
 Loader getCachedLoader(String name)
          Get the cached loader for a class
 URL getCachedResource(String name)
          Get the cached url for a resource
 BaseClassLoader getClassLoader()
          Get the classLoader.
 List<? extends DelegateLoader> getDelegates()
          Get the delegates.
 BaseDelegateLoader getExported()
          Get the exported.
 int getOrder()
          Get the order.
 BaseClassLoaderPolicy getPolicy()
          Get the policy.
 boolean isBlackListedClass(String name)
          Check whether this is a black listed class
 boolean isBlackListedResource(String name)
          Check whether this is a black listed resource
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClassLoaderInformation

public ClassLoaderInformation(BaseClassLoader classLoader,
                              BaseClassLoaderPolicy policy,
                              int order)
Create a new ClassLoaderInformation.

Parameters:
classLoader - the classloader
policy - the policy
order - the added order
Throws:
IllegalArgumentException - for a null parameter
Method Detail

flushCaches

public void flushCaches()
Flush the caches


getClassLoader

public BaseClassLoader getClassLoader()
Get the classLoader.

Returns:
the classLoader.

getPolicy

public BaseClassLoaderPolicy getPolicy()
Get the policy.

Returns:
the policy.

getOrder

public int getOrder()
Get the order.

Returns:
the order.

getExported

public BaseDelegateLoader getExported()
Get the exported.

Returns:
the exported.

getDelegates

public List<? extends DelegateLoader> getDelegates()
Get the delegates.

Returns:
the delegates.

getCachedLoader

public Loader getCachedLoader(String name)
Get the cached loader for a class

Parameters:
name - the class name
Returns:
any cached loader

cacheLoader

public void cacheLoader(String name,
                        Loader loader)
Cache a loader for a class

Parameters:
name - the class name
loader - the cached loader

isBlackListedClass

public boolean isBlackListedClass(String name)
Check whether this is a black listed class

Parameters:
name - the class name
Returns:
true when black listed

blackListClass

public void blackListClass(String name)
Blacklist a class

Parameters:
name - the class name to black list

getCachedResource

public URL getCachedResource(String name)
Get the cached url for a resource

Parameters:
name - the resource name
Returns:
any cached url

cacheResource

public void cacheResource(String name,
                          URL url)
Cache a url for a resource

Parameters:
name - the resource name
url - the cached url

isBlackListedResource

public boolean isBlackListedResource(String name)
Check whether this is a black listed resource

Parameters:
name - the resource name
Returns:
true when black listed

blackListResource

public void blackListResource(String name)
Blacklist a resource

Parameters:
name - the resource name to black list

clearBlackList

public void clearBlackList(String name)
Cleans the entry with the given name from the blackList

Parameters:
name - the name of the resource to clear from the blackList

toString

public String toString()
Overrides:
toString in class Object


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