public final class DefaultPlugins extends Object implements IsDefaultPlugins
Modifier and Type | Method and Description |
---|---|
<T extends AbstractPluginOptions> |
getOptions(String pluginId,
AbstractPluginOptionsFactory<T> factory)
Returns the plugin options, if exist.
|
boolean |
hasOptions(String pluginId)
Checks if there is any options for a specific plugin, by its id.
|
boolean |
isEnabled(String pluginId)
Returns if a global plugin is enabled or not.
|
public boolean isEnabled(String pluginId)
IsDefaultPlugins
isEnabled
in interface IsDefaultPlugins
pluginId
- plugin id.false
if a global plugin is not enabled otherwise true
.public boolean hasOptions(String pluginId)
IsDefaultPlugins
hasOptions
in interface IsDefaultPlugins
pluginId
- plugin id.true
if there is an options, otherwise false
.public <T extends AbstractPluginOptions> T getOptions(String pluginId, AbstractPluginOptionsFactory<T> factory)
IsDefaultPlugins
null
is returned.getOptions
in interface IsDefaultPlugins
T
- type of native object container to returnpluginId
- plugin id.factory
- factory instance to create a native object container.null
is returned.