|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.inject.AbstractModule
org.apache.onami.persist.PersistenceModule
public abstract class PersistenceModule
Main module of the onami persist guice extension.
| Constructor Summary | |
|---|---|
PersistenceModule()
|
|
| Method Summary | |
|---|---|
protected UnannotatedPersistenceUnitBuilder |
bindApplicationManagedPersistenceUnit(String puName)
Binds an application managed persistence unit. |
protected UnannotatedPersistenceUnitBuilder |
bindContainerManagedPersistenceUnit(javax.persistence.EntityManagerFactory emf)
Binds a container managed persistence unit for a given entity manager factory. |
protected UnannotatedPersistenceUnitBuilder |
bindContainerManagedPersistenceUnitProvidedBy(Class<? extends javax.inject.Provider<javax.persistence.EntityManagerFactory>> emfProviderClass)
Binds a container managed persistence unit. |
protected UnannotatedPersistenceUnitBuilder |
bindContainerManagedPersistenceUnitProvidedBy(com.google.inject.Key<? extends javax.inject.Provider<javax.persistence.EntityManagerFactory>> emfProviderKey)
Binds a container managed persistence unit. |
protected UnannotatedPersistenceUnitBuilder |
bindContainerManagedPersistenceUnitProvidedBy(javax.inject.Provider<javax.persistence.EntityManagerFactory> emfProvider)
Binds a container managed persistence unit. |
protected UnannotatedPersistenceUnitBuilder |
bindContainerManagedPersistenceUnitProvidedBy(com.google.inject.TypeLiteral<? extends javax.inject.Provider<javax.persistence.EntityManagerFactory>> emfProviderType)
Binds a container managed persistence unit. |
protected UnannotatedPersistenceUnitBuilder |
bindContainerManagedPersistenceUnitWithJndiName(String jndiName)
Binds a container managed persistence unit. |
protected void |
configure()
|
protected abstract void |
configurePersistence()
Configures the persistence units over the exposed methods. |
| 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 |
|---|
public PersistenceModule()
| Method Detail |
|---|
protected final void configure()
configure in class com.google.inject.AbstractModuleprotected abstract void configurePersistence()
protected UnannotatedPersistenceUnitBuilder bindApplicationManagedPersistenceUnit(String puName)
puName - the name of the persistence unit as defined in the persistence.xml.
protected UnannotatedPersistenceUnitBuilder bindContainerManagedPersistenceUnit(javax.persistence.EntityManagerFactory emf)
emf - the entity manager factory to use when creating new entity managers.
protected UnannotatedPersistenceUnitBuilder bindContainerManagedPersistenceUnitWithJndiName(String jndiName)
jndiName - the JNDI name of the entity manager factory.
protected UnannotatedPersistenceUnitBuilder bindContainerManagedPersistenceUnitProvidedBy(javax.inject.Provider<javax.persistence.EntityManagerFactory> emfProvider)
emfProvider - the provider for the entity manager factory.
protected UnannotatedPersistenceUnitBuilder bindContainerManagedPersistenceUnitProvidedBy(Class<? extends javax.inject.Provider<javax.persistence.EntityManagerFactory>> emfProviderClass)
emfProviderClass - the provider for the entity manager factory.
protected UnannotatedPersistenceUnitBuilder bindContainerManagedPersistenceUnitProvidedBy(com.google.inject.TypeLiteral<? extends javax.inject.Provider<javax.persistence.EntityManagerFactory>> emfProviderType)
emfProviderType - the provider for the entity manager factory.
protected UnannotatedPersistenceUnitBuilder bindContainerManagedPersistenceUnitProvidedBy(com.google.inject.Key<? extends javax.inject.Provider<javax.persistence.EntityManagerFactory>> emfProviderKey)
emfProviderKey - the provider for the entity manager factory.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||