01: package org.python.core;
02:
03: /**
04: * A common interface for bytecode loaders. Jython 2.0 have two loaders, a
05: * standard loader and a Java2 SecureClassLoader. Both loader implements this
06: * interface.
07: */
08:
09: public interface Loader {
10: /**
11: * Turn java byte codes into a class.
12: */
13: public Class loadClassFromBytes(String name, byte[] data);
14:
15: /**
16: * Add another classloader as a parent loader. Dependent classes will
17: * searched in these loaders.
18: */
19: public void addParent(ClassLoader referent);
20: }
|