Package com.priint.pubserver.util
Class PlaceholderUtils
- java.lang.Object
-
- com.priint.pubserver.util.PlaceholderUtils
-
public class PlaceholderUtils extends java.lang.ObjectUtils helpful for dealing with the Comet Placeholders.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TgetConfig(java.lang.String configPath)protected TgetConfig(java.lang.String configFolder, java.lang.String configName)protected java.lang.Class<CometPlaceholder>getConfigClass()static CometPlaceholdergetPlaceholder(java.lang.String tenant, java.lang.String project, int placeholderId)This method get the Comet Placeholder by placeholderID for a given project and tenant.
-
-
-
Method Detail
-
getPlaceholder
public static CometPlaceholder getPlaceholder(java.lang.String tenant, java.lang.String project, int placeholderId) throws ConfigManagerException, javax.xml.bind.JAXBException
This method get the Comet Placeholder by placeholderID for a given project and tenant.- Parameters:
tenant- tenantproject- projectplaceholderId- ID of the placeholder- Returns:
- CometPlaceholder
- Throws:
ConfigManagerExceptionjavax.xml.bind.JAXBException
-
getConfigClass
protected java.lang.Class<CometPlaceholder> getConfigClass()
-
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
-
-