com.google.inject.persist.jpa
Class JpaPersistModule
java.lang.Object
com.google.inject.AbstractModule
com.google.inject.persist.PersistModule
com.google.inject.persist.jpa.JpaPersistModule
- All Implemented Interfaces:
- Module
public final class JpaPersistModule
- extends PersistModule
JPA provider for guice persist.
- Author:
- dhanji@gmail.com (Dhanji R. Prasanna)
| Methods inherited from class com.google.inject.AbstractModule |
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JpaPersistModule
public JpaPersistModule(java.lang.String jpaUnit)
configurePersistence
protected void configurePersistence()
- Specified by:
configurePersistence in class PersistModule
getTransactionInterceptor
protected org.aopalliance.intercept.MethodInterceptor getTransactionInterceptor()
- Specified by:
getTransactionInterceptor in class PersistModule
properties
public JpaPersistModule properties(java.util.Properties properties)
- Configures the JPA persistence provider with a set of properties.
- Parameters:
properties - A set of name value pairs that configure a JPA persistence
provider as per the specification.
addFinder
public <T> JpaPersistModule addFinder(java.lang.Class<T> iface)
- Adds an interface to this module to use as a dynamic finder.
- Parameters:
iface - Any interface type whose methods are all dynamic finders.
Copyright © 2006-2011 Google, Inc.. All Rights Reserved.