Package org.fugerit.java.core.cfg.xml
Class PropertyCatalog
- java.lang.Object
-
- org.fugerit.java.core.cfg.helpers.AbstractConfigurableObject
-
- org.fugerit.java.core.cfg.xml.GenericListCatalogConfig<T>
-
- org.fugerit.java.core.cfg.xml.CustomListCatalogConfig<T,ListMapStringKey<T>>
-
- org.fugerit.java.core.cfg.xml.ListMapCatalogConfig<PropertyHolder>
-
- org.fugerit.java.core.cfg.xml.PropertyCatalog
-
- All Implemented Interfaces:
Serializable
,ConfigurableObject
,LogObject
public class PropertyCatalog extends ListMapCatalogConfig<PropertyHolder>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
PROP_DEFAULT_CATALOG
static String
PROP_MAP_SYSTEM_ENV
static String
PROP_PATH_PARAM_PROVIDER
-
Fields inherited from class org.fugerit.java.core.cfg.xml.GenericListCatalogConfig
ATT_BEAN_MODE, ATT_BEAN_MODE_DEFAULT, ATT_CONFIG_PROVIDER_NAME, ATT_DATA_CATALOG_CONFIG, ATT_LIST_TYPE, ATT_TAG_DATA, ATT_TAG_DATA_LIST, ATT_TAG_MODULE, ATT_TAG_MODULE_CONF_ID, ATT_TAG_MODULE_CONF_MODE, ATT_TAG_MODULE_CONF_MODE_CL, ATT_TAG_MODULE_CONF_MODE_FILE, ATT_TAG_MODULE_CONF_PATH, ATT_TAG_MODULE_CONF_UNSAFE, ATT_TAG_MODULE_LIST, ATT_TAG_TYPE_STRING, ATT_TRY_XSD_VALIDATION, ATT_TRY_XSD_VALIDATION_DEFAULT, ATT_TRY_XSD_VALIDATION_FALSE, ATT_TRY_XSD_VALIDATION_TRUE, ATT_TYPE, attTagData, attTagDataList, CONFIG_CHECK_DUPLICATE_ID, CONFIG_CHECK_DUPLICATE_ID_DEFAULT, CONFIG_CHECK_DUPLICATE_ID_FAIL, CONFIG_CHECK_DUPLICATE_ID_FAIL_ON_SET, CONFIG_CHECK_DUPLICATE_ID_WARN, CONFIG_CHECK_ENTRY_DUPLICATE_ID
-
Fields inherited from class org.fugerit.java.core.cfg.helpers.AbstractConfigurableObject
logger
-
-
Constructor Summary
Constructors Constructor Description PropertyCatalog()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configure(Element tag)
Configure the object.protected PropertyHolder
customEntryHandling(String dataListId, PropertyHolder current, Element element)
ListMapStringKey<PropertyHolder>
getDefaultCatalog()
PropertyHolder
getHolder(String catalog, String holder)
PropertyHolder
getHolderDef(String holder)
String
getProperty(String catalog, String holder, String key)
String
getProperty(String catalog, String holder, String key, String def)
String
getPropertyDef(String holder, String key)
String
getPropertyDef(String holder, String key, String def)
static PropertyCatalog
loadConfigSafe(String path)
-
Methods inherited from class org.fugerit.java.core.cfg.xml.CustomListCatalogConfig
getListMap
-
Methods inherited from class org.fugerit.java.core.cfg.xml.GenericListCatalogConfig
configure, customEntryHandling, getDataList, getEntryIdCheck, getIdSet, getLogger, hasDefinition, load, newCollection, validate
-
Methods inherited from class org.fugerit.java.core.cfg.helpers.AbstractConfigurableObject
configureProperties, configureXML, setConfigProvider
-
-
-
-
Field Detail
-
PROP_DEFAULT_CATALOG
public static final String PROP_DEFAULT_CATALOG
- See Also:
- Constant Field Values
-
PROP_MAP_SYSTEM_ENV
public static final String PROP_MAP_SYSTEM_ENV
- See Also:
- Constant Field Values
-
PROP_PATH_PARAM_PROVIDER
public static final String PROP_PATH_PARAM_PROVIDER
- See Also:
- Constant Field Values
-
-
Method Detail
-
loadConfigSafe
public static PropertyCatalog loadConfigSafe(String path)
-
customEntryHandling
protected PropertyHolder customEntryHandling(String dataListId, PropertyHolder current, Element element) throws ConfigException
- Overrides:
customEntryHandling
in classGenericListCatalogConfig<PropertyHolder>
- Throws:
ConfigException
-
configure
public void configure(Element tag) throws ConfigException
Description copied from interface:ConfigurableObject
Configure the object.
- Specified by:
configure
in interfaceConfigurableObject
- Overrides:
configure
in classGenericListCatalogConfig<PropertyHolder>
- Parameters:
tag
- The tag object to use for configuration.- Throws:
ConfigException
- If troubles arise during object configuration.
-
getHolder
public PropertyHolder getHolder(String catalog, String holder)
-
getHolderDef
public PropertyHolder getHolderDef(String holder)
-
getDefaultCatalog
public ListMapStringKey<PropertyHolder> getDefaultCatalog()
-
-