Return to www.inductionframework.org

com.acciente.commons.loader
Interface ClassDefLoader

All Known Implementing Classes:
JavaCompiledClassDefLoader, JavaSourceClassDefLoader

public interface ClassDefLoader

This is an interface that abstracts the loading of class definitions.


Method Summary
 ClassDef getClassDef(java.lang.String sClassName)
          Load the byte code and other information about the specified class
 ResourceDef getResourceDef(java.lang.String sResourceName)
          Load the data and other information about the specified resource
 

Method Detail

getClassDef

ClassDef getClassDef(java.lang.String sClassName)
                     throws java.lang.ClassNotFoundException
Load the byte code and other information about the specified class

Parameters:
sClassName - the name of the class for which a definition is requested
Returns:
a class definition if this class definition loader is able to locate and successfully load the byte code for the class. If the class could not be located a null is returned, if the class was located but the load failed an exception is thrown.
Throws:
java.lang.ClassNotFoundException - if this loader was able to locate the class definition was unable to sucessfully load it

getResourceDef

ResourceDef getResourceDef(java.lang.String sResourceName)
Load the data and other information about the specified resource

Parameters:
sResourceName - the name of the class for which a definition is requested
Returns:
a resource definition if this class definition loader is able to locate and successfully load the data for the resource. If the resource could not be located a null is returned, if the resource was located but the load failed again a null is returned (since the getResource() and getResourceAsStreamMethods() do not have checked exceptions in their signature).

Return to www.inductionframework.org

Copyright (c) 2008 Acciente, LLC. All rights reserved.