Package persist.hibernate.enhance.legacy
Class LegacyHibernateEnhancerProvider
java.lang.Object
persist.legacy.spi.LegacyPersistenceServiceProvider
persist.hibernate.enhance.legacy.LegacyHibernateEnhancerProvider
- All Implemented Interfaces:
PersistenceServiceProvider,HibernateEnhancerProvider
public class LegacyHibernateEnhancerProvider
extends LegacyPersistenceServiceProvider
implements HibernateEnhancerProvider
HibernateEnhancerProvider implementation for the legacy
javax.persistence namespace ("javax").
This provider is registered as a ServiceLoader
provider and delegates to LegacyHibernateEnhancer for
bytecode enhancement using Hibernate 5.
- Since:
- 1.0.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a newLegacyHibernateEnhancerProvider. -
Method Summary
Modifier and TypeMethodDescriptiongetEnhancer(File classesDir, Set<File> classpathFiles, Map<HibernateEnhancer.Option, Boolean> options) Creates aHibernateEnhancerconfigured with the given classpath and enhancement options.Methods inherited from class persist.legacy.spi.LegacyPersistenceServiceProvider
getSupportedNamespaceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface persist.api.spi.PersistenceServiceProvider
getSupportedNamespace
-
Constructor Details
-
LegacyHibernateEnhancerProvider
public LegacyHibernateEnhancerProvider()Creates a newLegacyHibernateEnhancerProvider.
-
-
Method Details
-
getEnhancer
public HibernateEnhancer getEnhancer(File classesDir, Set<File> classpathFiles, Map<HibernateEnhancer.Option, Boolean> options) Creates aHibernateEnhancerconfigured with the given classpath and enhancement options.- Specified by:
getEnhancerin interfaceHibernateEnhancerProvider- Parameters:
classesDir- the directory containing compiled entity class filesclasspathFiles- additional classpath entries required for enhancement (e.g. JPA API and Hibernate JARs)options- a map ofHibernateEnhancer.Optionflags controlling which transformations are applied- Returns:
- a new enhancer instance
-