Package net.solarnetwork.node.setup
Interface Plugin
- All Known Implementing Classes:
BundlePlugin,LocalizedPlugin
public interface Plugin
API for a system "plugin" that can be manipulated by the application at
runtime.
- Version:
- 1.0
- Author:
- matt
-
Method Summary
Modifier and TypeMethodDescriptiongetInfo()Get the plugin information.getLocalizedInfo(Locale locale) Get the plugin information as a localized resource.getUID()Get a unique identifier for this service.Get the plugin version.booleanReturn "core feature" flag.
-
Method Details
-
getUID
String getUID()Get a unique identifier for this service. This should be meaningful to the service implementation.- Returns:
- unique identifier (should never be null)
-
getVersion
PluginVersion getVersion()Get the plugin version.- Returns:
- the version
-
getInfo
PluginInfo getInfo()Get the plugin information.- Returns:
- the info
-
getLocalizedInfo
Get the plugin information as a localized resource.- Parameters:
locale- the locale- Returns:
- the info
-
isCoreFeature
boolean isCoreFeature()Return "core feature" flag. Core features are those plugins that are central to SolarNode functionality, and should not be removed by users. They can be upgraded, however.- Returns:
- core feature flag
-