|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compass.gps.device.jpa.lifecycle.OpenJPAJpaEntityLifecycleInjector
public class OpenJPAJpaEntityLifecycleInjector
Injects lifecycle listeners directly into OpenJPA for mirroring operations.
| Constructor Summary | |
|---|---|
OpenJPAJpaEntityLifecycleInjector()
|
|
| Method Summary | |
|---|---|
void |
injectLifecycle(javax.persistence.EntityManagerFactory entityManagerFactory,
JpaGpsDevice device)
Injects a global lifecycle listener into the concrete EntityManagerFactory |
void |
removeLifecycle(javax.persistence.EntityManagerFactory entityManagerFactory,
JpaGpsDevice device)
Removes (if possible) lifecycle listeners injected using the inject method. |
boolean |
requireRefresh()
Does this injector requires refreshing (i.e. remove and inject) of new listeners upon CompassGpsDevice.refresh(). |
void |
setClassLoader(ClassLoader classLoader)
|
void |
setEventListener(Object eventListener)
Allows to directly inject the event listener that will be used with Open JPA. |
void |
setUseSpecificClassEvents(boolean useSpecificClassEvents)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OpenJPAJpaEntityLifecycleInjector()
| Method Detail |
|---|
public void setUseSpecificClassEvents(boolean useSpecificClassEvents)
public void setClassLoader(ClassLoader classLoader)
public void setEventListener(Object eventListener)
OpenJPAJpaEntityLifecycleInjector.OpenJPAEventListener.
public boolean requireRefresh()
JpaEntityLifecycleInjectorCompassGpsDevice.refresh().
requireRefresh in interface JpaEntityLifecycleInjector
public void injectLifecycle(javax.persistence.EntityManagerFactory entityManagerFactory,
JpaGpsDevice device)
throws JpaGpsDeviceException
JpaEntityLifecycleInjectorEntityManagerFactory
implementation.
- Specified by:
injectLifecycle in interface JpaEntityLifecycleInjector
- Parameters:
entityManagerFactory - The EntityManagerFactory to inject the global lifecycle to.device - The Jpa device calling this injector
- Throws:
JpaGpsDeviceException
public void removeLifecycle(javax.persistence.EntityManagerFactory entityManagerFactory,
JpaGpsDevice device)
throws JpaGpsDeviceException
JpaEntityLifecycleInjector
removeLifecycle in interface JpaEntityLifecycleInjectorentityManagerFactory - The EMF to remove lifecycle fromdevice - The Jpa device calling
JpaGpsDeviceException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||