Class CapabilitiesProvidedInfoProvider
- java.lang.Object
-
- org.apache.felix.webconsole.internal.core.CapabilitiesProvidedInfoProvider
-
- All Implemented Interfaces:
BundleInfoProvider
public class CapabilitiesProvidedInfoProvider extends Object implements BundleInfoProvider
-
-
Field Summary
-
Fields inherited from interface org.apache.felix.webconsole.bundleinfo.BundleInfoProvider
NO_INFO
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BundleInfo[]
getBundleInfo(org.osgi.framework.Bundle bundle, String webConsoleRoot, Locale locale)
Gets the associated bundle information with the specified bundle (by it's ID) The Service may also be called outside through the new Inventory bundle due to mapping the BundlesServlet to an InventoryPrinter and for example calling it from a Gogo Shell.String
getName(Locale locale)
Gets the name of the bundle info provider as localized string.
-
-
-
Method Detail
-
getName
public String getName(Locale locale)
Description copied from interface:BundleInfoProvider
Gets the name of the bundle info provider as localized string.- Specified by:
getName
in interfaceBundleInfoProvider
- Parameters:
locale
- the locale in which the name should be returned- Returns:
- the name of the bundle info provider.
-
getBundleInfo
public BundleInfo[] getBundleInfo(org.osgi.framework.Bundle bundle, String webConsoleRoot, Locale locale)
Description copied from interface:BundleInfoProvider
Gets the associated bundle information with the specified bundle (by it's ID) The Service may also be called outside through the new Inventory bundle due to mapping the BundlesServlet to an InventoryPrinter and for example calling it from a Gogo Shell. In this case thewebConsoleRoot
parameter will be null aBundleInfo
objects of typeBundleInfoType.LINK
must not be generated.- Specified by:
getBundleInfo
in interfaceBundleInfoProvider
- Parameters:
bundle
- the bundle, for which additional information is requested.webConsoleRoot
- the root alias of the web console itself ornull
if this method is not called through the Web Console itself.locale
- the locale in which the key-value pair should be returned.- Returns:
- array of available
BundleInfo
or empty array if none.
-
-