Package net.solarnetwork.node.setup
Class BundlePlugin
java.lang.Object
net.solarnetwork.node.setup.BundlePlugin
- All Implemented Interfaces:
Plugin
Implementation of
Plugin that wraps a Bundle.- Version:
- 2.0
- Author:
- matt
-
Constructor Summary
ConstructorsConstructorDescriptionBundlePlugin(org.osgi.framework.Bundle bundle, boolean coreFeature) Construct with aBundle. -
Method Summary
Modifier and TypeMethodDescriptionorg.osgi.framework.BundleGet the Bundle associated with this plugin.getInfo()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.
-
Constructor Details
-
BundlePlugin
public BundlePlugin(org.osgi.framework.Bundle bundle, boolean coreFeature) Construct with aBundle.- Parameters:
bundle- the bundlecoreFeature- true if the bundle represents a core feature
-
-
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:
locale- 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
-
getBundle
public org.osgi.framework.Bundle getBundle()Get the Bundle associated with this plugin.- Returns:
- the Bundle
-