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, loadGlobalsPluginOptionsprotected AbstractPluginCachedOptionsFactory(String pluginId)
pluginId - plugin idpublic final void onAfterInit(IsChart chart)
ChartsLifecycleListeneronAfterInit in interface ChartsLifecycleListenerchart - the chart instance.public final void onBeforeDestroy(IsChart chart)
ChartsLifecycleListeneronBeforeDestroy in interface ChartsLifecycleListenerchart - the chart instance.public final void onBeforeInit(IsChart chart)
ChartsLifecycleListeneronBeforeInit in interface ChartsLifecycleListenerchart - the chart instance.public void onBeforeConfigure(IsChart chart)
ChartsLifecycleListeneronBeforeConfigure in interface ChartsLifecycleListenerchart - the chart instance.public void onAfterConfigure(IsChart chart)
ChartsLifecycleListeneronAfterConfigure in interface ChartsLifecycleListenerchart - the chart instance.public final void onAfterDestroy(IsChart chart)
ChartsLifecycleListeneronAfterDestroy in interface ChartsLifecycleListenerchart - the chart instance.protected final AbstractPluginCachedOptions getOptions(NativeObject nativeObject)
null.nativeObject - native object instance to be readnull.