org.objectweb.fractal.adl
Class JavaCodeLoader

java.lang.Object
  extended by org.objectweb.fractal.adl.JavaCodeLoader
All Implemented Interfaces:
ImplementationCodeLoader, IDLLoader

public class JavaCodeLoader
extends java.lang.Object
implements ImplementationCodeLoader, IDLLoader

Java implementation of ImplementationCodeLoader and IDLLoader interfaces for Java component.


Constructor Summary
JavaCodeLoader()
           
 
Method Summary
 java.lang.Object loadImplementation(java.lang.String signature, java.lang.String language, java.util.Map<java.lang.Object,java.lang.Object> context)
          Load an implementation code.
 java.lang.Object loadInterface(java.lang.String signature, java.util.Map<java.lang.Object,java.lang.Object> context)
          Loads the interface definition for the given signature.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaCodeLoader

public JavaCodeLoader()
Method Detail

loadImplementation

public java.lang.Object loadImplementation(java.lang.String signature,
                                           java.lang.String language,
                                           java.util.Map<java.lang.Object,java.lang.Object> context)
                                    throws ADLException
Description copied from interface: ImplementationCodeLoader
Load an implementation code.

Specified by:
loadImplementation in interface ImplementationCodeLoader
Parameters:
signature - the signature of the implementation.
language - the language of the implementation.
context - optional additional information.
Returns:
An Object representing the loaded implementation. The runtime type of this object depends on the language of the implementation (for Java the returned type is Class).
Throws:
ADLException - if the implementation can't be loaded.

loadInterface

public java.lang.Object loadInterface(java.lang.String signature,
                                      java.util.Map<java.lang.Object,java.lang.Object> context)
                               throws ADLException
Description copied from interface: IDLLoader
Loads the interface definition for the given signature.

Specified by:
loadInterface in interface IDLLoader
Parameters:
signature - the signature of the code to load.
context - optional additional information.
Returns:
An Object representing the loaded interface. The runtime type of this object depends on the language of the interface (for Java interface the returned type is Class).
Throws:
ADLException - if the interface can't be loaded.


Copyright © 2001-2010 ObjectWeb Consortium. All Rights Reserved.