Package com.priint.pubserver.util
Class ColorUtils
- java.lang.Object
-
- com.priint.pubserver.util.ColorUtils
-
public final class ColorUtils extends java.lang.ObjectClass with utilities connected to Comet Colors
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCUSTOM_CONFIG_NAME_PREFIXPrefix for the custom config files.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CometColorsgetColors()Method to get the Comet Colors both from the standard and custom configprotected TgetConfig(java.lang.String configPath)protected TgetConfig(java.lang.String configFolder, java.lang.String configName)protected java.lang.Class<CometColors>getConfigClass()protected TgetConfigMergedWithCustom(java.lang.String configFolder, java.lang.String configName)
-
-
-
Field Detail
-
CUSTOM_CONFIG_NAME_PREFIX
public static final java.lang.String CUSTOM_CONFIG_NAME_PREFIX
Prefix for the custom config files.- See Also:
- Constant Field Values
-
-
Method Detail
-
getColors
public static CometColors getColors() throws ConfigManagerException, javax.xml.bind.JAXBException
Method to get the Comet Colors both from the standard and custom config- Returns:
- returns merged Comet colors from the config and custom config
- Throws:
ConfigManagerExceptionjavax.xml.bind.JAXBException
-
getConfigClass
protected java.lang.Class<CometColors> getConfigClass()
-
getConfigMergedWithCustom
protected T getConfigMergedWithCustom(java.lang.String configFolder, java.lang.String configName) throws ConfigManagerException, javax.xml.bind.JAXBException- Throws:
ConfigManagerExceptionjavax.xml.bind.JAXBException
-
getConfig
protected T getConfig(java.lang.String configFolder, java.lang.String configName) throws ConfigManagerException, javax.xml.bind.JAXBException- Throws:
ConfigManagerExceptionjavax.xml.bind.JAXBException
-
getConfig
protected T getConfig(java.lang.String configPath) throws ConfigManagerException, javax.xml.bind.JAXBException- Throws:
ConfigManagerExceptionjavax.xml.bind.JAXBException
-
-