public interface BrandingRegistry
Modifier and Type | Interface and Description |
---|---|
static interface |
BrandingRegistry.BrandingMethod
A functional interface for
BrandingPlugin methods (cannot use Function since some of them throw Exceptions) |
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)
|
String getProductName()
BrandingPlugin
in the system.. E.g, if the full name is "DDF v1.0.0",
this will return "DDF"String getAttributeFromBranding(BrandingRegistry.BrandingMethod supplier)
BrandingPlugin
method reference (a BrandingRegistryImpl.BrandingMethod
and calls it on the highest priority BrandingPlugin
in the system.BrandingPlugin
's method call or if the method
call cannot be evaluated, an empty String ""String getProductVersion()
BrandingPlugin
in the system.. E.g, if the full name is "DDF
v1.0.0", this will return "v1.0.0"void setBrandingPlugins(List<BrandingPlugin> brandingPlugins)
brandingPlugins
- list of branding plugins associated with the systemList<BrandingPlugin> getBrandingPlugins()
This work is licensed under a Creative Commons Attribution 4.0 International License.