@Singleton public static class DefaultJPAApi.JPAApiProvider extends java.lang.Object implements javax.inject.Provider<JPAApi>
Constructor and Description |
---|
JPAApiProvider(JPAConfig jpaConfig,
JPAEntityManagerContext context,
ApplicationLifecycle lifecycle)
JPAApi has an implicit dependency on DBApi because DBApi sets up JNDI, so you probably want to use the
constructor that accepts DBApi, unless you have otherwise ensured the proper initialization order.
|
JPAApiProvider(JPAConfig jpaConfig,
JPAEntityManagerContext context,
ApplicationLifecycle lifecycle,
DBApi dbApi)
This constructor has a dependency on DBApi as a workaround for an issue with JNDI
See https://github.com/playframework/playframework/issues/6792
|
Modifier and Type | Method and Description |
---|---|
JPAApi |
get() |
public JPAApiProvider(JPAConfig jpaConfig, JPAEntityManagerContext context, ApplicationLifecycle lifecycle)
@Inject public JPAApiProvider(JPAConfig jpaConfig, JPAEntityManagerContext context, ApplicationLifecycle lifecycle, DBApi dbApi)