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
 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


Copyright © 2007 JBoss Inc.. All Rights Reserved.