public class DefaultBrandingPlugin extends Object implements BrandingPlugin
DefaultBrandingPlugin class is the default implementation
of the BrandingPlugin interface. The singleton instance of this
class is used as branding plugin if no BrandingPlugin service is registered
in the system.
This default implementation provides Apache Felix based default branding as follows:
| Name | Property Name | Default Value |
|---|---|---|
| Product Name | webconsole.product.name | Apache Felix |
| Product URL | webconsole.product.url | http://felix.apache.org |
| Product Image | webconsole.product.image | /res/imgs/logo.png |
| Vendor Name | webconsole.vendor.name | The Apache Software Foundation |
| Vendor URL | webconsole.vendor.url | http://www.apache.org |
| Vendor Image | webconsole.vendor.image | /res/imgs/logo.png |
| Favourite Icon | webconsole.favicon | /res/imgs/favicon.ico |
| Main Stylesheet | webconsole.stylesheet | /res/ui/admin.css |
If a properties file META-INF/webconsole.properties is available
through the class loader of this class, the properties overwrite the default
settings according to the property names listed above. The easiest way to
add such a properties file is to provide a fragment bundle with the file.
| Modifier and Type | Method and Description |
|---|---|
String |
getBrandName()
Returns an indicative name of the branding plugin
|
String |
getFavIcon()
Returns the absolute path to an icon to be used as the web console
"favicon".
|
static DefaultBrandingPlugin |
getInstance() |
String |
getMainStyleSheet()
Returns the absolute path to a CSS file to be used as the main CSS for
the basic admin site.
|
String |
getProductImage()
Returns an absolute path to an image to be rendered as the logo of the
branding product.
|
String |
getProductName()
Returns the name of the product in which the web console is contained
and to which the web console is branded.
|
String |
getProductURL()
Returns an (absolute) URL to a web site representing the product to
which the web console is branded.
|
String |
getVendorImage()
Returns an absolute path to an image to be rendered as the logo of the
branding product vendor.
|
String |
getVendorName()
Returns the name of the branding product vendor.
|
String |
getVendorURL()
Returns an (absolute) URL to the web site of the branding product
vendor.
|
public static DefaultBrandingPlugin getInstance()
public String getBrandName()
BrandingPlugingetBrandName in interface BrandingPluginpublic String getProductName()
BrandingPlugingetProductName in interface BrandingPluginpublic String getProductURL()
BrandingPlugingetProductURL in interface BrandingPluginpublic String getProductImage()
BrandingPlugingetProductImage in interface BrandingPluginpublic String getVendorName()
BrandingPlugingetVendorName in interface BrandingPluginpublic String getVendorURL()
BrandingPlugingetVendorURL in interface BrandingPluginpublic String getVendorImage()
BrandingPlugingetVendorImage in interface BrandingPluginpublic String getFavIcon()
BrandingPlugingetFavIcon in interface BrandingPluginpublic String getMainStyleSheet()
BrandingPlugingetMainStyleSheet in interface BrandingPluginCopyright © 2006–2013 The Apache Software Foundation. All rights reserved.