public final class JpaPersistModule extends PersistModule
Modifier and Type | Field and Description |
---|---|
private java.util.List<java.lang.Class<?>> |
dynamicFinders |
private java.lang.String |
jpaUnit |
private java.util.Map<?,?> |
properties |
private org.aopalliance.intercept.MethodInterceptor |
transactionInterceptor |
Constructor and Description |
---|
JpaPersistModule(java.lang.String jpaUnit) |
Modifier and Type | Method and Description |
---|---|
<T> JpaPersistModule |
addFinder(java.lang.Class<T> iface)
Adds an interface to this module to use as a dynamic finder.
|
private <T> void |
bindFinder(java.lang.Class<T> iface) |
protected void |
configurePersistence() |
protected org.aopalliance.intercept.MethodInterceptor |
getTransactionInterceptor() |
private boolean |
isDynamicFinderValid(java.lang.Class<?> iface) |
JpaPersistModule |
properties(java.util.Map<?,?> properties)
Configures the JPA persistence provider with a set of properties.
|
(package private) java.util.Map<?,?> |
provideProperties() |
configure
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
private final java.lang.String jpaUnit
private java.util.Map<?,?> properties
private org.aopalliance.intercept.MethodInterceptor transactionInterceptor
private final java.util.List<java.lang.Class<?>> dynamicFinders
protected void configurePersistence()
configurePersistence
in class PersistModule
protected org.aopalliance.intercept.MethodInterceptor getTransactionInterceptor()
getTransactionInterceptor
in class PersistModule
@Provides java.util.Map<?,?> provideProperties()
public JpaPersistModule properties(java.util.Map<?,?> properties)
properties
- A set of name value pairs that configure a JPA persistence
provider as per the specification.java.util.Properties
)public <T> JpaPersistModule addFinder(java.lang.Class<T> iface)
iface
- Any interface type whose methods are all dynamic finders.private <T> void bindFinder(java.lang.Class<T> iface)
private boolean isDynamicFinderValid(java.lang.Class<?> iface)