public abstract class AbstractPluginCachedOptionsFactory<T extends AbstractPluginCachedOptions> extends AbstractPluginOptionsFactory<T> implements ChartsLifecycleListener
Modifier | Constructor and Description |
---|---|
protected |
AbstractPluginCachedOptionsFactory(String pluginId)
Adds itself as charts life cycle listener to manage the cache of plugin options, in order to clean the instances when the
charts will be destroy.
|
Modifier and Type | Method and Description |
---|---|
protected AbstractPluginCachedOptions |
getOptions(NativeObject nativeObject)
Returns the cached plugin options instance if there is, otherwise returns
null . |
void |
onAfterConfigure(IsChart chart)
Called after 'chart' has been configured.
|
void |
onAfterDestroy(IsChart chart)
Called after the chart has been destroyed.
|
void |
onAfterInit(IsChart chart)
Called after 'chart' has been initialized.
|
void |
onBeforeConfigure(IsChart chart)
Called before configuring 'chart'.
|
void |
onBeforeDestroy(IsChart chart)
Called before the chart has been destroyed.
|
void |
onBeforeInit(IsChart chart)
Called before initializing 'chart'.
|
create, getPluginId, loadGlobalsPluginOptions
protected AbstractPluginCachedOptionsFactory(String pluginId)
pluginId
- plugin idpublic final void onAfterInit(IsChart chart)
ChartsLifecycleListener
onAfterInit
in interface ChartsLifecycleListener
chart
- the chart instance.public final void onBeforeDestroy(IsChart chart)
ChartsLifecycleListener
onBeforeDestroy
in interface ChartsLifecycleListener
chart
- the chart instance.public final void onBeforeInit(IsChart chart)
ChartsLifecycleListener
onBeforeInit
in interface ChartsLifecycleListener
chart
- the chart instance.public void onBeforeConfigure(IsChart chart)
ChartsLifecycleListener
onBeforeConfigure
in interface ChartsLifecycleListener
chart
- the chart instance.public void onAfterConfigure(IsChart chart)
ChartsLifecycleListener
onAfterConfigure
in interface ChartsLifecycleListener
chart
- the chart instance.public final void onAfterDestroy(IsChart chart)
ChartsLifecycleListener
onAfterDestroy
in interface ChartsLifecycleListener
chart
- the chart instance.protected final AbstractPluginCachedOptions getOptions(NativeObject nativeObject)
null
.nativeObject
- native object instance to be readnull
.