Class BundlePlugin

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

public class BundlePlugin extends Object implements Plugin
Implementation of Plugin that wraps a Bundle.
Version:
2.0
Author:
matt
  • Constructor Details

    • BundlePlugin

      public BundlePlugin(org.osgi.framework.Bundle bundle, boolean coreFeature)
      Construct with a Bundle.
      Parameters:
      bundle - the bundle
      coreFeature - true if the bundle represents a core feature
  • 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 locale)
      Description copied from interface: Plugin
      Get the plugin information as a localized resource.
      Specified by:
      getLocalizedInfo in interface Plugin
      Parameters:
      locale - 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
    • getBundle

      public org.osgi.framework.Bundle getBundle()
      Get the Bundle associated with this plugin.
      Returns:
      the Bundle