org.compass.gps.device.jpa.lifecycle
Interface JpaEntityLifecycleInjector
- All Known Implementing Classes:
- HibernateJpaEntityLifecycleInjector
public interface JpaEntityLifecycleInjector
A global lifecycle event listener injector. Since the EntityManagerFactory does not
allow for setting global lifecycle event listeners, actual implementations of the JPA spec can be
used directly to inject global lifecycle event listeners usign propriety APIs.
Assume that the EntityManagerFactory is the native one, since the
NativeEntityManagerFactoryExtractor of the
JpaGpsDevice was used to extract it.
- Author:
- kimchy
- See Also:
HibernateJpaEntityLifecycleInjector,
JpaEntityLifecycleInjectorDetector
|
Method Summary |
void |
injectLifecycle(javax.persistence.EntityManagerFactory entityManagerFactory,
JpaGpsDevice device)
Injects a global lifecycle listener into the concrete EntityManagerFactory
implementation. |
injectLifecycle
void injectLifecycle(javax.persistence.EntityManagerFactory entityManagerFactory,
JpaGpsDevice device)
throws JpaGpsDeviceException
- Injects a global lifecycle listener into the concrete
EntityManagerFactory
implementation.
- Parameters:
entityManagerFactory - The EntityManagerFactory to inject the global lifecycle to.device - The Jpa device calling this injector
- Throws:
JpaGpsDeviceException
Copyright (c) 2004-2006 The Compass Project.