Class LocalizedPlugin

java.lang.Object
net.solarnetwork.node.setup.LocalizedPlugin
All Implemented Interfaces:
Plugin

public class LocalizedPlugin extends Object implements Plugin
Localized version of PluginInfo so that calls to non-localized JavaBean accessors return localized values.
Version:
1.0
Author:
matt
  • Constructor Details

    • LocalizedPlugin

      public LocalizedPlugin(Plugin plugin, Locale locale)
      Construct with values.
      Parameters:
      plugin - the non-localized plugin to delegate to
      locale - the desired locale to use
  • Method Details

    • getUID

      public String getUID()
      Description copied from interface: Plugin
      Get a unique identifier for this service. This should be meaningful to the service implementation.
      Specified by:
      getUID in interface Plugin
      Returns:
      unique identifier (should never be null)
    • getVersion

      public PluginVersion getVersion()
      Description copied from interface: Plugin
      Get the plugin version.
      Specified by:
      getVersion in interface Plugin
      Returns:
      the version
    • getInfo

      public PluginInfo getInfo()
      Description copied from interface: Plugin
      Get the plugin information.
      Specified by:
      getInfo in interface Plugin
      Returns:
      the info
    • getLocalizedInfo

      public PluginInfo getLocalizedInfo(Locale otherLocale)
      Description copied from interface: Plugin
      Get the plugin information as a localized resource.
      Specified by:
      getLocalizedInfo in interface Plugin
      Parameters:
      otherLocale - the locale
      Returns:
      the info
    • isCoreFeature

      public boolean isCoreFeature()
      Description copied from interface: Plugin
      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.
      Specified by:
      isCoreFeature in interface Plugin
      Returns:
      core feature flag