Top Description Fields Constructors Methods
org.hibernate.boot.cfgxml.internal

public Class ConfigLoader

extends Object
Class Inheritance
Imports
java.io.File, .FileInputStream, .FileNotFoundException, .IOException, .InputStream, java.net.URL, java.util.Properties, org.hibernate.boot.cfgxml.spi.LoadedConfig, org.hibernate.boot.jaxb.Origin, .SourceType, org.hibernate.boot.jaxb.cfg.spi.JaxbCfgHibernateConfiguration, org.hibernate.boot.registry.BootstrapServiceRegistry, org.hibernate.boot.registry.classloading.spi.ClassLoaderService, org.hibernate.internal.util.ValueHolder, org.hibernate.internal.util.config.ConfigurationException, org.jboss.logging.Logger

Loads cfg.xml files.
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final BootstrapServiceRegistry
private final ValueHolder<JaxbCfgProcessor>
private static final Logger

Constructor Summary

AccessConstructor and Description
public
ConfigLoader(BootstrapServiceRegistry bootstrapServiceRegistry)

Method Summary

Modifier and TypeMethod and Description
public LoadedConfig
loadConfigXmlFile(File cfgXmlFile)

public LoadedConfig
loadConfigXmlResource(String cfgXmlResourceName)

public LoadedConfig
public Properties
loadProperties(String resourceName)

public Properties
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

bootstrapServiceRegistryback to summary
private final BootstrapServiceRegistry bootstrapServiceRegistry
jaxbProcessorHolderback to summary
private final ValueHolder<JaxbCfgProcessor> jaxbProcessorHolder
logback to summary
private static final Logger log

Constructor Detail

ConfigLoaderback to summary
public ConfigLoader(BootstrapServiceRegistry bootstrapServiceRegistry)

Method Detail

loadConfigXmlFileback to summary
public LoadedConfig loadConfigXmlFile(File cfgXmlFile)
loadConfigXmlResourceback to summary
public LoadedConfig loadConfigXmlResource(String cfgXmlResourceName)
loadConfigXmlUrlback to summary
public LoadedConfig loadConfigXmlUrl(URL url)
loadPropertiesback to summary
public Properties loadProperties(String resourceName)
loadPropertiesback to summary
public Properties loadProperties(File file)