Package org.hibernate.boot.cfgxml.spi
Class LoadedConfig
- java.lang.Object
-
- org.hibernate.boot.cfgxml.spi.LoadedConfig
-
public class LoadedConfig extends java.lang.Object
Models the information gleaned from parsing acfg.xml
file. A LoadedConfig is 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(java.lang.String sessionFactoryName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addCacheRegionDefinition(CacheRegionDefinition cacheRegionDefinition)
protected void
addConfigurationValues(java.util.Map configurationValues)
void
addEventListener(EventType eventType, java.lang.String listenerClass)
static LoadedConfig
baseline()
static LoadedConfig
consume(JaxbCfgHibernateConfiguration jaxbCfg)
Consumes the JAXB representation of acfg.xml
file and builds the LoadedConfig representation.java.util.List<CacheRegionDefinition>
getCacheRegionDefinitions()
java.util.Map
getConfigurationValues()
java.util.Map<EventType,java.util.Set<java.lang.String>>
getEventListenerMap()
JaccPermissionDeclarations
getJaccPermissions(java.lang.String jaccContextId)
Deprecated.Support for JACC will be removed in 6.0java.util.Map<java.lang.String,JaccPermissionDeclarations>
getJaccPermissionsByContextId()
Deprecated.Support for JACC will be removed in 6.0java.util.List<MappingReference>
getMappingReferences()
JaccPermissionDeclarations
getOrCreateJaccPermissions(java.lang.String contextId)
java.lang.String
getSessionFactoryName()
void
merge(LoadedConfig incoming)
Merge information from loaded acfg.xml
represented by the incoming parameter into this LoadedConfig representation
-
-
-
Method Detail
-
getSessionFactoryName
public java.lang.String getSessionFactoryName()
-
getConfigurationValues
public java.util.Map getConfigurationValues()
-
getJaccPermissionsByContextId
@Deprecated public java.util.Map<java.lang.String,JaccPermissionDeclarations> getJaccPermissionsByContextId()
Deprecated.Support for JACC will be removed in 6.0
-
getJaccPermissions
@Deprecated public JaccPermissionDeclarations getJaccPermissions(java.lang.String jaccContextId)
Deprecated.Support for JACC will be removed in 6.0
-
getCacheRegionDefinitions
public java.util.List<CacheRegionDefinition> getCacheRegionDefinitions()
-
getMappingReferences
public java.util.List<MappingReference> getMappingReferences()
-
getEventListenerMap
public java.util.Map<EventType,java.util.Set<java.lang.String>> getEventListenerMap()
-
consume
public static LoadedConfig consume(JaxbCfgHibernateConfiguration jaxbCfg)
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
public void addCacheRegionDefinition(CacheRegionDefinition cacheRegionDefinition)
-
addEventListener
public void addEventListener(EventType eventType, java.lang.String listenerClass)
-
getOrCreateJaccPermissions
public JaccPermissionDeclarations getOrCreateJaccPermissions(java.lang.String contextId)
-
merge
public void merge(LoadedConfig incoming)
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
protected void addConfigurationValues(java.util.Map configurationValues)
-
baseline
public static LoadedConfig baseline()
-
-