org.mozilla.javascript
Interface ClassRepository


public interface ClassRepository

This interface provides a means to store generated class and to allow selective class loading.

Author:
Kemal Bayram
See Also:
Context

Method Summary
 boolean storeClass(java.lang.String className, byte[] classBytes, boolean isTopLevel)
           
 

Method Detail

storeClass

public boolean storeClass(java.lang.String className,
                          byte[] classBytes,
                          boolean isTopLevel)
                   throws java.io.IOException
Parameters:
className - the name of the class.
classBytes - a byte array of the generated class.
isTopLevel - if true, represents the top-level script being compiled.
Returns:
true if the class should be loaded, false otherwise.