Package org.hibernate.boot.cfgxml.spi
Class LoadedConfig
java.lang.Object
org.hibernate.boot.cfgxml.spi.LoadedConfig
Models the information gleaned from parsing a
cfg.xml
file.
A LoadedConfig
is built via consume(org.hibernate.boot.jaxb.cfg.spi.JaxbCfgHibernateConfiguration)
. An aggregated
representation can be maintained through calls to merge(org.hibernate.boot.cfgxml.spi.LoadedConfig)
.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCacheRegionDefinition
(CacheRegionDefinition cacheRegionDefinition) protected void
addConfigurationValues
(Map<String, Object> configurationValues) void
addEventListener
(EventType<?> eventType, String listenerClass) static LoadedConfig
baseline()
static LoadedConfig
consume
(JaxbCfgHibernateConfiguration jaxbCfg) Consumes the JAXB representation of acfg.xml
file and builds the LoadedConfig representation.void
merge
(LoadedConfig incoming) Merge information from loaded acfg.xml
represented by the incoming parameter into this LoadedConfig representation
-
Constructor Details
-
LoadedConfig
-
-
Method Details
-
getSessionFactoryName
-
getConfigurationValues
-
getCacheRegionDefinitions
-
getMappingReferences
-
getEventListenerMap
-
consume
Consumes the JAXB representation of acfg.xml
file and builds the LoadedConfig representation.- Parameters:
jaxbCfg
- The JAXB representation of acfg.xml
file- Returns:
- The parsed representation
-
addCacheRegionDefinition
-
addEventListener
-
merge
Merge information from loaded acfg.xml
represented by the incoming parameter into this LoadedConfig representation- Parameters:
incoming
- The incoming config information to merge in.
-
addConfigurationValues
-
baseline
-