public class MetadataBuildingProcess extends Object
MetadataSources
reference into a Metadata reference. Allows for 2 different process paradigms:build(org.hibernate.boot.MetadataSources, org.hibernate.boot.spi.BootstrapContext, org.hibernate.boot.spi.MetadataBuildingOptions) method; internally leverages the 2-step paradigm
Metadata. A hugely important distinction in the need for the
steps is that the first phase should strive to not load user entity/component classes so that we can still
perform enhancement on them later. This approach caters to the 2-phase bootstrap we use in regards
to WildFly Hibernate-JPA integration. The first step is defined by prepare(org.hibernate.boot.MetadataSources, org.hibernate.boot.spi.BootstrapContext) which returns
a ManagedResources instance. The second step is defined by calling
complete(org.hibernate.boot.model.process.spi.ManagedResources, org.hibernate.boot.spi.BootstrapContext, org.hibernate.boot.spi.MetadataBuildingOptions)
| Constructor and Description |
|---|
MetadataBuildingProcess() |
| Modifier and Type | Method and Description |
|---|---|
static MetadataImplementor |
build(MetadataSources sources,
BootstrapContext bootstrapContext,
MetadataBuildingOptions options)
Unified single phase for MetadataSources->Metadata process
|
static MetadataImplementor |
complete(ManagedResources managedResources,
BootstrapContext bootstrapContext,
MetadataBuildingOptions options)
Second step of 2-phase for MetadataSources->Metadata process
|
static ManagedResources |
prepare(MetadataSources sources,
BootstrapContext bootstrapContext)
First step of 2-phase for MetadataSources->Metadata process
|
public static MetadataImplementor build(MetadataSources sources, BootstrapContext bootstrapContext, MetadataBuildingOptions options)
sources - The MetadataSourcesoptions - The building optionspublic static ManagedResources prepare(MetadataSources sources, BootstrapContext bootstrapContext)
sources - The MetadataSourcesbootstrapContext - The bootstrapContextpublic static MetadataImplementor complete(ManagedResources managedResources, BootstrapContext bootstrapContext, MetadataBuildingOptions options)
managedResources - The token/memento from 1st phaseoptions - The building optionsCopyright © 2001-2022 Red Hat, Inc. All Rights Reserved.