Package com.singularsys.jep.misc
Class OneShotComponent
java.lang.Object
com.singularsys.jep.misc.OneShotComponent
- All Implemented Interfaces:
JepComponent,Serializable
- Direct Known Subclasses:
DictionaryComponents,FunctionSet
Components are are initialised only once.
On the first call to
init(Jep),
the method firstInit(Jep) is called.
On subsequent calls, firstInit(Jep) is not called.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidSince the component is only initialised once, there is no need for a light weight instance.final voidInitialize the component.
-
Constructor Details
-
OneShotComponent
public OneShotComponent()
-
-
Method Details
-
init
Description copied from interface:JepComponentInitialize the component. This method is called whenever a component is added to Jep. Hence, it allows components to keep track of the other components they may rely on.- Specified by:
initin interfaceJepComponent- Parameters:
jep- the current Jep instance
-
firstInit
-
getLightWeightInstance
Since the component is only initialised once, there is no need for a light weight instance.- Specified by:
getLightWeightInstancein interfaceJepComponent- Returns:
- null
-