public class MetadataBuildingProcess extends Object
org.hibernate.boot.MetadataSources
reference into a org.hibernate.boot.Metadata reference. Allows for 2 different process paradigms:build(cn.sexycode.mybatis.jpa.binding.MetadataSources, cn.sexycode.mybatis.jpa.binding.MetadataBuildingOptions) method; internally leverages the 2-step paradigm
org.hibernate.boot.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(cn.sexycode.mybatis.jpa.binding.MetadataSources, cn.sexycode.mybatis.jpa.binding.MetadataBuildingOptions) which returns
a ManagedResources instance. The second step is defined by calling
complete(cn.sexycode.mybatis.jpa.binding.ManagedResources, cn.sexycode.mybatis.jpa.binding.MetadataBuildingOptions)
| 构造器和说明 |
|---|
MetadataBuildingProcess() |
| 限定符和类型 | 方法和说明 |
|---|---|
static Metadata |
build(MetadataSources sources,
MetadataBuildingOptions options)
Unified single phase for MetadataSources->Metadata process
|
static Metadata |
complete(ManagedResources managedResources,
MetadataBuildingOptions options)
Second step of 2-phase for MetadataSources->Metadata process
|
static ManagedResources |
prepare(MetadataSources sources,
MetadataBuildingOptions options)
First step of 2-phase for MetadataSources->Metadata process
|
public static Metadata build(MetadataSources sources, MetadataBuildingOptions options)
sources - The MetadataSourcesoptions - The building optionspublic static ManagedResources prepare(MetadataSources sources, MetadataBuildingOptions options)
sources - The MetadataSourcesoptions - The building optionspublic static Metadata complete(ManagedResources managedResources, MetadataBuildingOptions options)
managedResources - The token/memento from 1st phaseoptions - The building optionsCopyright © 2019. All rights reserved.