Class LoadedConfig

java.lang.Object
org.hibernate.boot.cfgxml.spi.LoadedConfig

public class LoadedConfig extends Object
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 Details

    • LoadedConfig

      public LoadedConfig(String sessionFactoryName)
  • Method Details

    • getSessionFactoryName

      public String getSessionFactoryName()
    • getConfigurationValues

      public Map<String,Object> getConfigurationValues()
    • getCacheRegionDefinitions

      public List<CacheRegionDefinition> getCacheRegionDefinitions()
    • getMappingReferences

      public List<MappingReference> getMappingReferences()
    • getEventListenerMap

      public Map<EventType<?>,Set<String>> getEventListenerMap()
    • consume

      public static LoadedConfig consume(JaxbCfgHibernateConfiguration jaxbCfg)
      Consumes the JAXB representation of a cfg.xml file and builds the LoadedConfig representation.
      Parameters:
      jaxbCfg - The JAXB representation of a cfg.xml file
      Returns:
      The parsed representation
    • addCacheRegionDefinition

      public void addCacheRegionDefinition(CacheRegionDefinition cacheRegionDefinition)
    • addEventListener

      public void addEventListener(EventType<?> eventType, String listenerClass)
    • merge

      public void merge(LoadedConfig incoming)
      Merge information from loaded a cfg.xml represented 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()