org.ow2.jasmine.jade.fractal.julia.loader
Class DynamicLoader

java.lang.Object
  extended by org.ow2.jasmine.jade.fractal.julia.loader.BasicLoader
      extended by org.ow2.jasmine.jade.fractal.julia.loader.DynamicLoader
All Implemented Interfaces:
org.objectweb.fractal.julia.loader.Loader

Deprecated. Provides an implementation of the Loader interface that can generate classes on the fly.

Requirements contributor : Jakub Kornas

public class DynamicLoader
extends BasicLoader


Constructor Summary
DynamicLoader()
          Deprecated.  
 
Method Summary
protected  java.lang.Class generateClass(java.lang.String name, org.objectweb.fractal.julia.loader.Tree classDescriptor, java.lang.Object loader)
          Deprecated. Generates the class whose descriptor is given, with the given name.
 void init(java.util.Map context)
          Deprecated.  
 java.lang.Class loadClass(java.lang.String name, java.lang.Object loader)
          Deprecated.  
 
Methods inherited from class org.ow2.jasmine.jade.fractal.julia.loader.BasicLoader
evalTree, loadClass, loadTree, newObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamicLoader

public DynamicLoader()
Deprecated. 
Method Detail

init

public void init(java.util.Map context)
          throws java.lang.Exception
Deprecated. 
Specified by:
init in interface org.objectweb.fractal.julia.loader.Loader
Overrides:
init in class BasicLoader
Throws:
java.lang.Exception

loadClass

public java.lang.Class loadClass(java.lang.String name,
                                 java.lang.Object loader)
                          throws java.lang.ClassNotFoundException
Deprecated. 
Specified by:
loadClass in interface org.objectweb.fractal.julia.loader.Loader
Overrides:
loadClass in class BasicLoader
Throws:
java.lang.ClassNotFoundException

generateClass

protected java.lang.Class generateClass(java.lang.String name,
                                        org.objectweb.fractal.julia.loader.Tree classDescriptor,
                                        java.lang.Object loader)
                                 throws java.lang.ClassNotFoundException
Deprecated. 
Description copied from class: BasicLoader
Generates the class whose descriptor is given, with the given name. The generated class must implement the Generated interface, and its getFcGeneratorParameters method must return classDescriptor.toString(). The default implementation of this method throws an exception.

Overrides:
generateClass in class BasicLoader
Parameters:
name - the name of the class to be generated.
classDescriptor - the descriptor of the class to be generated. This descriptor must be of the form "(objectDescriptor arg1 ... argN)" (see loadClass).
loader - an optional class loader to load auxiliary classes.
Returns:
a class named name and whose content is described by the given class descriptor.
Throws:
java.lang.ClassNotFoundException - if a problem occurs during the generation of the class.


Copyright © 2008 OW2 Consortium. All Rights Reserved.