org.apache.commons.clazz
Interface ClazzLoaderFactory

All Known Implementing Classes:
ClazzLoaderFactorySupport, ExtendedClazzLoaderFactory, StandardClazzLoaderFactory

public interface ClazzLoaderFactory

A clazz loader factory creates and configures clazz loaders.

Version:
$Id: ClazzLoaderFactory.java 155436 2005-02-26 13:17:48Z dirkv $
Author:
Dmitri Plotnikov

Method Summary
 void addClazzLoaderClass(Class clazzLoaderClass)
          The supplied class should be an implementation of the ClazzLoader interface.
 ClazzLoader getClazzLoader(ClassLoader contextClassLoader)
          Allocate, configure and cache a clazz loader that uses the supplied class loader for reflection.
 String getClazzModel()
          Returns the name of the clazz model implemented by this factory.
 

Method Detail

getClazzModel

String getClazzModel()
Returns the name of the clazz model implemented by this factory. By convention, it should be a proper identifier, no dots, capitalized.


getClazzLoader

ClazzLoader getClazzLoader(ClassLoader contextClassLoader)
Allocate, configure and cache a clazz loader that uses the supplied class loader for reflection.


addClazzLoaderClass

void addClazzLoaderClass(Class clazzLoaderClass)
The supplied class should be an implementation of the ClazzLoader interface. When ClazzLoaderFactory creates a new clazz loader, it will instantiate all registered implementations and group them together.



Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.