org.objectweb.jonathan.libs.kernel.decoders

Class LazyComponent

Implemented Interfaces:
Component, Forkable
Known Direct Subclasses:
JAssemblage, JAtom, JSequence

public abstract class LazyComponent
extends JComponent

Lazy implementation of a runtime component. Its initialization (configuration resolution & instanciation) is called before each access to its type & value fields.

Field Summary

protected boolean
initialized

Fields inherited from class org.objectweb.jonathan.libs.kernel.JComponent

int_value, reference, type, value

Constructor Summary

LazyComponent()

Method Summary

int
getIntValue()
Class
getType()
Object
getValue()
protected void
initialize()

Methods inherited from class org.objectweb.jonathan.libs.kernel.JComponent

duplicate, fork, getComponent, getElement, getFactoryValue, getIntValue, getReference, getType, getValue, getValue, internalFork, reset, setReference, toString

Field Details

initialized

protected boolean initialized

Constructor Details

LazyComponent

public LazyComponent()

Method Details

getIntValue

public int getIntValue()
Specified by:
getIntValue in interface Component
Overrides:
getIntValue in interface JComponent


getType

public Class getType()
Specified by:
getType in interface Component
Overrides:
getType in interface JComponent


getValue

public Object getValue()
Specified by:
getValue in interface Component
Overrides:
getValue in interface JComponent


initialize

protected void initialize()