public class TwoPhaseBootstrapImpl extends Object implements EntityManagerFactoryBuilder
Constructor and Description |
---|
TwoPhaseBootstrapImpl(javax.persistence.spi.PersistenceUnitInfo info,
Map map) |
Modifier and Type | Method and Description |
---|---|
javax.persistence.EntityManagerFactory |
build()
Build
EntityManagerFactory instance |
void |
cancel()
Cancel the building processing.
|
EntityManagerFactoryBuilder |
withValidatorFactory(Object validatorFactory)
Allows passing in a Java EE ValidatorFactory (delayed from constructing the builder, AKA phase 2) to be used
in building the EntityManagerFactory
|
public TwoPhaseBootstrapImpl(javax.persistence.spi.PersistenceUnitInfo info, Map map)
public javax.persistence.EntityManagerFactory build()
EntityManagerFactoryBuilder
EntityManagerFactory
instancebuild
in interface EntityManagerFactoryBuilder
EntityManagerFactory
public void cancel()
EntityManagerFactoryBuilder
cancel
in interface EntityManagerFactoryBuilder
public EntityManagerFactoryBuilder withValidatorFactory(Object validatorFactory)
EntityManagerFactoryBuilder
withValidatorFactory
in interface EntityManagerFactoryBuilder
validatorFactory
- The ValidatorFactorythis
, for method chainingCopyright © 2018 JBoss by Red Hat. All rights reserved.