org.apache.commons.clazz.common
Class ClazzLoaderFactorySupport

java.lang.Object
  extended by org.apache.commons.clazz.common.ClazzLoaderFactorySupport
All Implemented Interfaces:
ClazzLoaderFactory
Direct Known Subclasses:
ExtendedClazzLoaderFactory, StandardClazzLoaderFactory

public abstract class ClazzLoaderFactorySupport
extends Object
implements ClazzLoaderFactory

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

Constructor Summary
protected ClazzLoaderFactorySupport()
          Constructor for ClazzLoaderFactorySupport.
 
Method Summary
 void addClazzLoaderClass(Class clazzLoaderClass)
          The supplied class should be an implementation of the ClazzLoader interface.
protected  ClazzLoader allocateClazzLoader(ModelClazzLoader modelClazzLoader, Class javaClass, ClassLoader contextClassLoader)
           
protected  ClazzLoader createClazzLoader(ClassLoader contextClassLoader)
           
 ClazzLoader getClazzLoader(ClassLoader contextClassLoader)
          Allocate, configure and cache a clazz loader that uses the supplied class loader for reflection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.commons.clazz.ClazzLoaderFactory
getClazzModel
 

Constructor Detail

ClazzLoaderFactorySupport

protected ClazzLoaderFactorySupport()
Constructor for ClazzLoaderFactorySupport.

Method Detail

getClazzLoader

public ClazzLoader getClazzLoader(ClassLoader contextClassLoader)
Description copied from interface: ClazzLoaderFactory
Allocate, configure and cache a clazz loader that uses the supplied class loader for reflection.

Specified by:
getClazzLoader in interface ClazzLoaderFactory
See Also:
ClazzLoaderFactory.getClazzLoader(ClassLoader)

createClazzLoader

protected ClazzLoader createClazzLoader(ClassLoader contextClassLoader)

allocateClazzLoader

protected ClazzLoader allocateClazzLoader(ModelClazzLoader modelClazzLoader,
                                          Class javaClass,
                                          ClassLoader contextClassLoader)

addClazzLoaderClass

public void addClazzLoaderClass(Class clazzLoaderClass)
Description copied from interface: ClazzLoaderFactory
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.

Specified by:
addClazzLoaderClass in interface ClazzLoaderFactory


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