public final class

JpaPersistModule

extends PersistModule
java.lang.Object
   ↳ com.google.inject.AbstractModule
     ↳ com.google.inject.persist.PersistModule
       ↳ com.google.inject.persist.jpa.JpaPersistModule

Class Overview

JPA provider for guice persist.

Summary

Public Constructors
JpaPersistModule(String jpaUnit)
Public Methods
<T> JpaPersistModule addFinder(Class<T> iface)
Adds an interface to this module to use as a dynamic finder.
JpaPersistModule properties(Properties properties)
Configures the JPA persistence provider with a set of properties.
Protected Methods
void configurePersistence()
MethodInterceptor getTransactionInterceptor()
[Expand]
Inherited Methods
From class com.google.inject.persist.PersistModule
From class com.google.inject.AbstractModule
From class java.lang.Object
From interface com.google.inject.Module

Public Constructors

public JpaPersistModule (String jpaUnit)

Public Methods

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

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.

Protected Methods

protected void configurePersistence ()

protected MethodInterceptor getTransactionInterceptor ()