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).
JAlternative(String _implementation_class, List _arguments, List _setters, int _id) - In order to be compliant with old versions.
|
JAlternative(String _implementation_class, List _arguments, int _id) - In order to be compliant with old versions.
|
JAlternative(String _name, String _implementation_class, List _arguments, 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 .
|
arguments
public List arguments
construction_name
public String construction_name
constructor
public Constructor constructor
implementation_class
public String implementation_class
mconstructor
public Method mconstructor
setters
public List setters
JAlternative
public JAlternative(String _implementation_class,
List _arguments,
List _setters,
int _id)
In order to be compliant with old versions.
_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(String _implementation_class,
List _arguments,
int _id)
In order to be compliant with old versions.
_implementation_class
- the alternative's implementation class_arguments
- list of contruction arguments_id
- the alternative's identifier.
JAlternative
public JAlternative(String _name,
String _implementation_class,
List _arguments,
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 String toString()