|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jonathan.libs.kernel.JComponent
org.objectweb.jonathan.libs.kernel.decoders.LazyComponent
org.objectweb.jonathan.libs.kernel.decoders.JAtom
public class JAtom
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.
Field Summary | |
---|---|
protected java.lang.String |
classe
|
Fields inherited from class org.objectweb.jonathan.libs.kernel.decoders.LazyComponent |
---|
initialized |
Fields inherited from class org.objectweb.jonathan.libs.kernel.JComponent |
---|
int_value, reference, type, value |
Constructor Summary | |
---|---|
JAtom(java.lang.String _class)
Creates a new class atom whose alternatives are listed in _alternatives as JAlternatives. |
|
JAtom(java.lang.String _class,
java.util.List _alternatives)
Creates a new class atom whose alternatives are listed in _alternatives as JAlternatives. |
Method Summary | |
---|---|
Component |
duplicate()
|
java.lang.Object |
getFactoryValue()
Return a wrapper of this JComponent value for factory aspects. |
protected void |
initialize()
JAtom specific initialization code. |
void |
initialize(java.lang.Object _obj,
Context _c,
int _alternative)
Implementation of the Initializer interface's initialize method. |
java.lang.Object |
newObject(Context _c,
int _alternative,
Instanciable _instance)
Implementation of the MultiFactory interface's newObject method. |
java.lang.String |
toString()
|
Methods inherited from class org.objectweb.jonathan.libs.kernel.decoders.LazyComponent |
---|
getIntValue, getType, getValue |
Methods inherited from class org.objectweb.jonathan.libs.kernel.JComponent |
---|
fork, getComponent, getElement, getReference, getValue, internalFork, reset, setReference |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.String classe
Constructor Detail |
---|
public JAtom(java.lang.String _class, java.util.List _alternatives)
public JAtom(java.lang.String _class)
Method Detail |
---|
public Component duplicate()
duplicate
in class JComponent
public java.lang.String toString()
toString
in class JComponent
public java.lang.Object getFactoryValue() throws JonathanException
getFactoryValue
in interface Component
getFactoryValue
in class JComponent
JonathanException
public java.lang.Object newObject(Context _c, int _alternative, Instanciable _instance) throws JonathanException
_alternative
.
newObject
in interface MultiFactory
_c
- where the instanciation parameters are found_alternative
- the alternative to instantiate_instance
- the method's caller.
_alternative
's instance
JonathanException
- if something goes wrong.public void initialize(java.lang.Object _obj, Context _c, int _alternative) throws JonathanException
_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.protected final void initialize()
LazyComponent
.
initialize
in class LazyComponent
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |