org.objectweb.jonathan.libs.kernel.decoders
Class JAlternative

java.lang.Object
  extended by org.objectweb.jonathan.libs.kernel.decoders.JAlternative

public class JAlternative
extends java.lang.Object

An implementation alternative's runtime representation. Identifies a single constructor method by handling its class and its arguments types list (as a JArgument list). Used by its ImplicitFactory to instantiate an implementation.

A JAlternative is created along with its ImplicitFactory, either by the application compiled configuration or by the runtime XMLImplicitFactoryDecoder (if the application's XML configuration has not been compiled, but is used as the XML runtime configuration file instead).


Field Summary
 java.util.List arguments
           
 java.lang.String construction_name
           
 java.lang.reflect.Constructor constructor
           
 int id
           
 java.lang.String implementation_class
           
 java.lang.reflect.Method mconstructor
           
 java.util.List setters
           
 
Constructor Summary
JAlternative(java.lang.String _implementation_class, java.util.List _arguments, int _id)
          In order to be compliant with old versions.
JAlternative(java.lang.String _implementation_class, java.util.List _arguments, java.util.List _setters, int _id)
          In order to be compliant with old versions.
JAlternative(java.lang.String _name, java.lang.String _implementation_class, java.util.List _arguments, java.util.List _setters, int _id)
          creates the runtime implementation alternative whose implementation class is _implementation_class and whose arguments' types are listed as JArgument in _arguments.
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

implementation_class

public java.lang.String implementation_class

arguments

public java.util.List arguments

setters

public java.util.List setters

id

public int id

construction_name

public java.lang.String construction_name

constructor

public java.lang.reflect.Constructor constructor

mconstructor

public java.lang.reflect.Method mconstructor
Constructor Detail

JAlternative

public JAlternative(java.lang.String _implementation_class,
                    java.util.List _arguments,
                    int _id)
In order to be compliant with old versions.

Parameters:
_implementation_class - the alternative's implementation class
_arguments - list of contruction arguments
_id - the alternative's identifier.

JAlternative

public JAlternative(java.lang.String _implementation_class,
                    java.util.List _arguments,
                    java.util.List _setters,
                    int _id)
In order to be compliant with old versions.

Parameters:
_implementation_class - the alternative's implementation class
_arguments - list of contruction arguments
_setters - list of initialisation arguments
_id - the alternative's identifier.

JAlternative

public JAlternative(java.lang.String _name,
                    java.lang.String _implementation_class,
                    java.util.List _arguments,
                    java.util.List _setters,
                    int _id)
creates the runtime implementation alternative whose implementation class is _implementation_class and whose arguments' types are listed as JArgument in _arguments. If _name is null, the corresponding constructor is called. Otherwise, the method _name is called. Parameters' for initialisation are stored as JSetter in _setters.

Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object