public class PluginsService extends AbstractComponent
Modifier and Type | Field and Description |
---|---|
static Setting<java.util.List<java.lang.String>> |
MANDATORY_SETTING |
deprecationLogger, logger, settings
Constructor and Description |
---|
PluginsService(Settings settings,
java.nio.file.Path modulesDirectory,
java.nio.file.Path pluginsDirectory,
java.util.Collection<java.lang.Class<? extends Plugin>> classpathPlugins)
Constructs a new PluginService
|
Modifier and Type | Method and Description |
---|---|
PluginsAndModules |
info()
Get information about plugins and modules
|
java.util.Collection<Module> |
nodeModules() |
java.util.Collection<java.lang.Class<? extends LifecycleComponent>> |
nodeServices() |
void |
onIndexModule(IndexModule indexModule) |
void |
processModule(Module module) |
void |
processModules(java.lang.Iterable<Module> modules) |
Settings |
updatedSettings() |
logDeprecatedSetting, logRemovedSetting, nodeName
public static final Setting<java.util.List<java.lang.String>> MANDATORY_SETTING
public PluginsService(Settings settings, java.nio.file.Path modulesDirectory, java.nio.file.Path pluginsDirectory, java.util.Collection<java.lang.Class<? extends Plugin>> classpathPlugins)
settings
- The settings of the systemmodulesDirectory
- The directory modules exist in, or null if modules should not be loaded from the filesystempluginsDirectory
- The directory plugins exist in, or null if plugins should not be loaded from the filesystemclasspathPlugins
- Plugins that exist in the classpath which should be loadedpublic void processModules(java.lang.Iterable<Module> modules)
public void processModule(Module module)
public Settings updatedSettings()
public java.util.Collection<Module> nodeModules()
public java.util.Collection<java.lang.Class<? extends LifecycleComponent>> nodeServices()
public void onIndexModule(IndexModule indexModule)
public PluginsAndModules info()