org.jboss.classloading.spi
Interface RealClassLoader

All Superinterfaces:
org.jboss.util.loading.Translatable

public interface RealClassLoader
extends org.jboss.util.loading.Translatable

RealClassLoader.

A tagging interface for RealClassLoaders

Version:
$Revision: 1.1 $
Author:
Adrian Brock

Method Summary
 void clearBlackList(String name)
          Cleans the entry with the given name from the blackList
 Class<?> getCachedClass(String name)
          Check the cache to see if the class is already loaded
 URL getCachedResource(String name)
          Check the cache to see if the resource is already loaded
 ObjectName getObjectName()
          Get the object name for this classloader
 boolean isValid()
          Whether the classloader is valid
 
Methods inherited from interface org.jboss.util.loading.Translatable
getResourceLocally
 

Method Detail

getObjectName

ObjectName getObjectName()
Get the object name for this classloader

Returns:
the object name

isValid

boolean isValid()
Whether the classloader is valid

Returns:
true when valid

getCachedClass

Class<?> getCachedClass(String name)
Check the cache to see if the class is already loaded

Parameters:
name - the class name
Returns:
the class or null if not cached

getCachedResource

URL getCachedResource(String name)
Check the cache to see if the resource is already loaded

Parameters:
name - the name of the resource
Returns:
the resource url or null if not cached

clearBlackList

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


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