Class QuarkusMappingFileParser
- java.lang.Object
-
- io.quarkus.hibernate.orm.deployment.xml.QuarkusMappingFileParser
-
- All Implemented Interfaces:
AutoCloseable
public final class QuarkusMappingFileParser extends Object implements AutoCloseable
A parser for orm.xml mapping files.
-
-
Constructor Summary
Constructors Constructor Description QuarkusMappingFileParser(org.hibernate.boot.registry.BootstrapServiceRegistry serviceRegistry, org.hibernate.boot.spi.XmlMappingBinderAccess binderAccess)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()static QuarkusMappingFileParsercreate()Optional<RecordableXmlMapping>parse(String persistenceUnitName, URL persistenceUnitRootUrl, String mappingFilePath)
-
-
-
Method Detail
-
create
public static QuarkusMappingFileParser create()
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable
-
parse
public Optional<RecordableXmlMapping> parse(String persistenceUnitName, URL persistenceUnitRootUrl, String mappingFilePath)
- Parameters:
persistenceUnitName- The name of the persistence unit requesting the mapping file.persistenceUnitRootUrl- The root URL of the persistence unit requesting the mapping file.mappingFilePath- The path of the mapping file in the classpath.- Returns:
- A summary of the parsed mapping file, or
Optional.empty()if it was not found.
-
-