1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.apache.commons.clazz;
17
18 /***
19 * A clazz loader factory creates and configures clazz loaders.
20 *
21 * @author <a href="mailto:dmitri@apache.org">Dmitri Plotnikov</a>
22 * @version $Id: ClazzLoaderFactory.java,v 1.5 2004/02/19 23:58:37 scolebourne Exp $
23 */
24 public interface ClazzLoaderFactory {
25
26 /***
27 * Returns the name of the clazz model implemented by this factory.
28 * By convention, it should be a proper identifier, no dots, capitalized.
29 */
30 String getClazzModel();
31
32 /***
33 * Allocate, configure and cache a clazz loader that uses the supplied class
34 * loader for reflection.
35 */
36 ClazzLoader getClazzLoader(ClassLoader contextClassLoader);
37
38 /***
39 * The supplied class should be an implementation of the ClazzLoader
40 * interface. When ClazzLoaderFactory creates a new clazz loader, it will
41 * instantiate all registered implementations and group them together.
42 */
43 void addClazzLoaderClass(Class clazzLoaderClass);
44 }