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.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(String sessionFactoryName)
-
Method Summary
-
-
-
Constructor Detail
-
LoadedConfig
public LoadedConfig(String sessionFactoryName)
-
-
Method Detail
-
getSessionFactoryName
public String getSessionFactoryName()
-
getConfigurationValues
public Map getConfigurationValues()
-
getJaccPermissionsByContextId
@Deprecated public Map<String,JaccPermissionDeclarations> getJaccPermissionsByContextId()
Deprecated.Support for JACC will be removed in 6.0
-
getJaccPermissions
@Deprecated public JaccPermissionDeclarations getJaccPermissions(String jaccContextId)
Deprecated.Support for JACC will be removed in 6.0
-
getCacheRegionDefinitions
public List<CacheRegionDefinition> getCacheRegionDefinitions()
-
getMappingReferences
public List<MappingReference> getMappingReferences()
-
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)
-
getOrCreateJaccPermissions
public JaccPermissionDeclarations getOrCreateJaccPermissions(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(Map configurationValues)
-
baseline
public static LoadedConfig baseline()
-
-