public class BrandingRegistryImpl extends Object implements BrandingRegistry
BrandingRegistry.BrandingMethod
Constructor and Description |
---|
BrandingRegistryImpl() |
Modifier and Type | Method and Description |
---|---|
String |
getAttributeFromBranding(BrandingRegistry.BrandingMethod supplier)
This method takes in a
BrandingPlugin method reference (a BrandingRegistryImpl.BrandingMethod and calls it on the highest priority BrandingPlugin in the system. |
List<BrandingPlugin> |
getBrandingPlugins()
|
String |
getProductName()
This method returns the name portion of the name & version of the product, as defined by the
highest priority
BrandingPlugin in the system.. |
String |
getProductVersion()
This method returns the version number portion of the name & version of the product, as defined
by the highest priority
BrandingPlugin in the system.. |
void |
setBrandingPlugins(List<BrandingPlugin> brandingPlugins)
|
public String getProductName()
BrandingRegistry
BrandingPlugin
in the system.. E.g, if the full name is "DDF v1.0.0",
this will return "DDF"getProductName
in interface BrandingRegistry
public String getAttributeFromBranding(BrandingRegistry.BrandingMethod supplier)
BrandingRegistry
BrandingPlugin
method reference (a BrandingRegistryImpl.BrandingMethod
and calls it on the highest priority BrandingPlugin
in the system.getAttributeFromBranding
in interface BrandingRegistry
BrandingPlugin
's method call or if the method
call cannot be evaluated, an empty String ""public String getProductVersion()
BrandingRegistry
BrandingPlugin
in the system.. E.g, if the full name is "DDF
v1.0.0", this will return "v1.0.0"getProductVersion
in interface BrandingRegistry
public List<BrandingPlugin> getBrandingPlugins()
BrandingRegistry
getBrandingPlugins
in interface BrandingRegistry
public void setBrandingPlugins(List<BrandingPlugin> brandingPlugins)
BrandingRegistry
setBrandingPlugins
in interface BrandingRegistry
brandingPlugins
- list of branding plugins associated with the systemThis work is licensed under a Creative Commons Attribution 4.0 International License.