org.ow2.jasmine.jade.fractal.julia.loader
Class DynamicLoader
java.lang.Object
org.ow2.jasmine.jade.fractal.julia.loader.BasicLoader
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
- the Java platform must provide the Java reflection API and the
ClassLoader class.
contributor : Jakub Kornas
public class DynamicLoader
- extends BasicLoader
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DynamicLoader
public DynamicLoader()
- Deprecated.
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.