org.objectweb.jonathan.libs.kernel.decoders
Class JAlternative
java.lang.Object
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).
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 |
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
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
.
toString
public java.lang.String toString()