Package org.hibernate.boot.cfgxml.spi
Class LoadedConfig
- java.lang.Object
-
- org.hibernate.boot.cfgxml.spi.LoadedConfig
-
public class LoadedConfig extends Object
Models the information gleaned from parsing acfg.xmlfile.A
LoadedConfigis built viaconsume(org.hibernate.boot.jaxb.cfg.spi.JaxbCfgHibernateConfiguration). An aggregated representation can be maintained through calls tomerge(org.hibernate.boot.cfgxml.spi.LoadedConfig).
-
-
Constructor Summary
Constructors Constructor Description LoadedConfig(String sessionFactoryName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCacheRegionDefinition(CacheRegionDefinition cacheRegionDefinition)protected voidaddConfigurationValues(Map<String,Object> configurationValues)voidaddEventListener(EventType<?> eventType, String listenerClass)static LoadedConfigbaseline()static LoadedConfigconsume(JaxbCfgHibernateConfiguration jaxbCfg)Consumes the JAXB representation of acfg.xmlfile and builds the LoadedConfig representation.List<CacheRegionDefinition>getCacheRegionDefinitions()Map<String,Object>getConfigurationValues()Map<EventType<?>,Set<String>>getEventListenerMap()List<MappingReference>getMappingReferences()StringgetSessionFactoryName()voidmerge(LoadedConfig incoming)Merge information from loaded acfg.xmlrepresented by the incoming parameter into this LoadedConfig representation
-
-
-
Constructor Detail
-
LoadedConfig
public LoadedConfig(String sessionFactoryName)
-
-
Method Detail
-
getSessionFactoryName
public String getSessionFactoryName()
-
getCacheRegionDefinitions
public List<CacheRegionDefinition> getCacheRegionDefinitions()
-
getMappingReferences
public List<MappingReference> getMappingReferences()
-
consume
public static LoadedConfig consume(JaxbCfgHibernateConfiguration jaxbCfg)
Consumes the JAXB representation of acfg.xmlfile and builds the LoadedConfig representation.- Parameters:
jaxbCfg- The JAXB representation of acfg.xmlfile- Returns:
- The parsed representation
-
addCacheRegionDefinition
public void addCacheRegionDefinition(CacheRegionDefinition cacheRegionDefinition)
-
merge
public void merge(LoadedConfig incoming)
Merge information from loaded acfg.xmlrepresented by the incoming parameter into this LoadedConfig representation- Parameters:
incoming- The incoming config information to merge in.
-
addConfigurationValues
protected void addConfigurationValues(Map<String,Object> configurationValues)
-
baseline
public static LoadedConfig baseline()
-
-