com.google.inject.persist.jpa
Class JpaPersistModule

java.lang.Object
  extended by com.google.inject.AbstractModule
      extended by com.google.inject.persist.PersistModule
          extended by 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)

Constructor Summary
JpaPersistModule(String jpaUnit)
           
 
Method Summary
<T> JpaPersistModule
addFinder(Class<T> iface)
          Adds an interface to this module to use as a dynamic finder.
protected  void configurePersistence()
           
protected  org.aopalliance.intercept.MethodInterceptor getTransactionInterceptor()
           
 JpaPersistModule properties(Properties properties)
          Configures the JPA persistence provider with a set of properties.
 
Methods inherited from class com.google.inject.persist.PersistModule
configure
 
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
 

Constructor Detail

JpaPersistModule

public JpaPersistModule(String jpaUnit)
Method Detail

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(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(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.