Package org.apache.tapestry5.jpa.modules
Class JpaModule
-
- org.apache.tapestry5.jpa.modules.JpaModule
-
public class JpaModule extends
Defines core services for JPA support.- Since:
- 5.3
-
-
Constructor Summary
Constructors Constructor Description JpaModule()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
bind(ServiceBinder binder)
static EntityManagerManager
buildEntityManagerManager(EntityManagerSource entityManagerSource, PerthreadManager perthreadManager, org.slf4j.Logger logger)
static JpaEntityPackageManager
<> packageNames)
static void
,ApplicationStateContribution> configuration, EntityManagerSource entityManagerSource, boolean entitySessionStatePersistenceStrategyEnabled)
void
,ApplicationStatePersistenceStrategy> configuration)
static void
provideClassTransformWorkers(OrderedConfiguration<ComponentClassTransformWorker2> configuration)
static void
> configuration, appRootPackage)
static void
,PersistentFieldStrategy> configuration)
static void
,> configuration)
static void
provideObjectProviders(OrderedConfiguration<ObjectProvider> configuration)
static void
,ValueEncoderFactory> configuration, boolean provideEncoders, EntityManagerSource entityManagerSource, EntityManagerManager entityManagerManager, TypeCoercer typeCoercer, PropertyAccess propertyAccess, LoggerSource loggerSource)
static void
startupEarly(EntityManagerManager entityManagerManager, boolean earlyStartup)
-
-
-
Constructor Detail
-
JpaModule
public JpaModule()
-
-
Method Detail
-
bind
public static void bind(ServiceBinder binder)
-
buildJpaEntityPackageManager
public static <> packageNames)
-
buildEntityManagerManager
@Scope("perthread") public static EntityManagerManager buildEntityManagerManager(EntityManagerSource entityManagerSource, PerthreadManager perthreadManager, org.slf4j.Logger logger)
-
provideEntityPackages
@Contribute(JpaEntityPackageManager.class) public static void > configuration, @Symbol("tapestry.app-package") appRootPackage)
-
provideEntityPersistentFieldStrategies
@Contribute(PersistentFieldManager.class) public static void ,PersistentFieldStrategy> configuration)
-
provideApplicationStatePersistenceStrategies
@Contribute(ApplicationStatePersistenceStrategySource.class) public void ,ApplicationStatePersistenceStrategy> configuration)
-
provideClassTransformWorkers
@Contribute(ComponentClassTransformWorker2.class) @Primary public static void provideClassTransformWorkers(OrderedConfiguration<ComponentClassTransformWorker2> configuration)
-
provideObjectProviders
@Contribute(MasterObjectProvider.class) public static void provideObjectProviders(OrderedConfiguration<ObjectProvider> configuration)
-
provideFactoryDefaults
@Contribute(SymbolProvider.class) @FactoryDefaults public static void ,> configuration)
-
provideValueEncoders
@Contribute(ValueEncoderSource.class) public static void ,ValueEncoderFactory> configuration, @Symbol("tapestry.jpa.provide-entity-value-encoders") boolean provideEncoders, EntityManagerSource entityManagerSource, EntityManagerManager entityManagerManager, TypeCoercer typeCoercer, PropertyAccess propertyAccess, LoggerSource loggerSource)
-
provideApplicationStateContributions
@Contribute(ApplicationStateManager.class) public static void ,ApplicationStateContribution> configuration, EntityManagerSource entityManagerSource, @Symbol("tapestry.jpa.entity-session-state-persistence-strategy-enabled") boolean entitySessionStatePersistenceStrategyEnabled)
-
startupEarly
@Startup public static void startupEarly(EntityManagerManager entityManagerManager, @Symbol("tapestry.jpa.early-startup") boolean earlyStartup)
-
-