org.objectweb.jonathan.libs.kernel.decoders
Class JAtom
- Component, Forkable, Initializer, MultiFactory
Runtime atom component. Initialisation issues
are dealt with by the
LazyComponent
implementation.
Provides the basic behaviour of a
MultiFactory
too: holds a set of implementation alternatives.
JAtom(String _class) - Creates a new class atom whose alternatives
are listed in _alternatives as JAlternatives.
|
JAtom(String _class, List _alternatives) - Creates a new class atom whose alternatives
are listed in _alternatives as JAlternatives.
|
duplicate , fork , getComponent , getElement , getFactoryValue , getIntValue , getReference , getType , getValue , getValue , internalFork , reset , setReference , toString |
classe
protected String classe
JAtom
public JAtom(String _class)
Creates a new class atom whose alternatives
are listed in _alternatives as JAlternatives.
JAtom
public JAtom(String _class,
List _alternatives)
Creates a new class atom whose alternatives
are listed in _alternatives as JAlternatives.
initialize
protected final void initialize()
JAtom specific initialization code. Instantiates the JAtom's
own value. Used internally by
LazyComponent
.
- initialize in interface LazyComponent
initialize
public void initialize(Object _obj,
Context _c,
int _alternative)
throws JonathanException
Implementation of the Initializer interface's initialize method.
Initializes an instance of the atom's implementation
alternative whose ID is _alternative
by calling its
setters.
- initialize in interface Initializer
_obj
- the object to initialize_c
- where the initialisation parameters are found_alternative
- the alternative to instantiate
JonathanException
- if something goes wrong.
newObject
public Object newObject(Context _c,
int _alternative,
Instanciable _instance)
throws JonathanException
Implementation of the MultiFactory interface's newObject method.
Returns a new instance of the atom's implementation
alternative whose ID is _alternative
.
- newObject in interface MultiFactory
_c
- where the instanciation parameters are found_alternative
- the alternative to instantiate_instance
- the method's caller.
- an new
_alternative
's instance
JonathanException
- if something goes wrong.
toString
public String toString()
- toString in interface JComponent