Package net.solarnetwork.node.setup
Class LocalizedPlugin
java.lang.Object
net.solarnetwork.node.setup.LocalizedPlugin
- All Implemented Interfaces:
Plugin
Localized version of
PluginInfo so that calls to non-localized
JavaBean accessors return localized values.- Version:
- 1.0
- Author:
- matt
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetInfo()Get the plugin information.getLocalizedInfo(Locale otherLocale) Get the plugin information as a localized resource.getUID()Get a unique identifier for this service.Get the plugin version.booleanReturn "core feature" flag.
-
Constructor Details
-
LocalizedPlugin
Construct with values.- Parameters:
plugin- the non-localized plugin to delegate tolocale- the desired locale to use
-
-
Method Details
-
getUID
Description copied from interface:PluginGet a unique identifier for this service. This should be meaningful to the service implementation. -
getVersion
Description copied from interface:PluginGet the plugin version.- Specified by:
getVersionin interfacePlugin- Returns:
- the version
-
getInfo
Description copied from interface:PluginGet the plugin information. -
getLocalizedInfo
Description copied from interface:PluginGet the plugin information as a localized resource.- Specified by:
getLocalizedInfoin interfacePlugin- Parameters:
otherLocale- the locale- Returns:
- the info
-
isCoreFeature
public boolean isCoreFeature()Description copied from interface:PluginReturn "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.- Specified by:
isCoreFeaturein interfacePlugin- Returns:
- core feature flag
-