org.ow2.jasmine.jade.fractal.julia.loader
Class BasicLoader
java.lang.Object
org.ow2.jasmine.jade.fractal.julia.loader.BasicLoader
- All Implemented Interfaces:
- org.objectweb.fractal.julia.loader.Loader
- Direct Known Subclasses:
- DynamicLoader
public class BasicLoader
- extends java.lang.Object
- implements org.objectweb.fractal.julia.loader.Loader
Provides a basic implementation of the
Loader interface. This
implementation loads the required classes from the class path.
This class is an extension of the
BasicLoader.
Contributors : Jakub Kornas
|
Method Summary |
org.objectweb.fractal.julia.loader.Tree |
evalTree(org.objectweb.fractal.julia.loader.Tree tree,
java.util.Map context)
|
protected java.lang.Class |
generateClass(java.lang.String name,
org.objectweb.fractal.julia.loader.Tree classDescriptor,
java.lang.Object loader)
Generates the class whose descriptor is given, with the given name. |
void |
init(java.util.Map context)
|
java.lang.Class |
loadClass(java.lang.String name,
java.lang.Object loader)
|
java.lang.Class |
loadClass(org.objectweb.fractal.julia.loader.Tree classDescriptor,
java.lang.Object loader)
|
org.objectweb.fractal.julia.loader.Tree |
loadTree(java.lang.String name)
|
java.lang.Object |
newObject(org.objectweb.fractal.julia.loader.Tree objectDescriptor,
java.lang.Object loader)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicLoader
public BasicLoader()
init
public void init(java.util.Map context)
throws java.lang.Exception
- Specified by:
init in interface org.objectweb.fractal.julia.loader.Loader
- Throws:
java.lang.Exception
loadTree
public org.objectweb.fractal.julia.loader.Tree loadTree(java.lang.String name)
throws java.lang.Exception
- Specified by:
loadTree in interface org.objectweb.fractal.julia.loader.Loader
- Throws:
java.lang.Exception
evalTree
public org.objectweb.fractal.julia.loader.Tree evalTree(org.objectweb.fractal.julia.loader.Tree tree,
java.util.Map context)
throws java.lang.Exception
- Specified by:
evalTree in interface org.objectweb.fractal.julia.loader.Loader
- Throws:
java.lang.Exception
newObject
public java.lang.Object newObject(org.objectweb.fractal.julia.loader.Tree objectDescriptor,
java.lang.Object loader)
throws java.lang.Exception
- Specified by:
newObject in interface org.objectweb.fractal.julia.loader.Loader
- Throws:
java.lang.Exception
loadClass
public java.lang.Class loadClass(java.lang.String name,
java.lang.Object loader)
throws java.lang.ClassNotFoundException
- Specified by:
loadClass in interface org.objectweb.fractal.julia.loader.Loader
- Throws:
java.lang.ClassNotFoundException
loadClass
public java.lang.Class loadClass(org.objectweb.fractal.julia.loader.Tree classDescriptor,
java.lang.Object loader)
throws java.lang.ClassNotFoundException
- Specified by:
loadClass in interface org.objectweb.fractal.julia.loader.Loader
- 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
- 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.
- 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.