KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > python > core > Loader


1
2 package org.python.core;
3
4 /**
5  * A common interface for bytecode loaders.
6  * Jython 2.0 have two loaders, a standard loader and a
7  * Java2 SecureClassLoader. Both loader implements this
8  * interface.
9  */

10
11 public interface Loader {
12    /**
13     * Turn java byte codes into a class.
14     */

15    public Class JavaDoc loadClassFromBytes(String JavaDoc name, byte[] data);
16
17    /**
18     * Add another classloader as a parent loader.
19     * Dependent classes will searched in these loaders.
20     */

21    public void addParent(ClassLoader JavaDoc referent);
22 }
23
Popular Tags