org.compass.gps.device.jpa.lifecycle
Class JpaEntityLifecycleInjectorDetector
java.lang.Object
org.compass.gps.device.jpa.lifecycle.JpaEntityLifecycleInjectorDetector
public abstract class JpaEntityLifecycleInjectorDetector
- extends Object
A JpaEntityLifecycleInjector detector. Tries to check for the actual implementation of JPA
EntityManagerFactory, and based on it, check if the current set of actual JPA
implementations is one of compass supported ones (like Hibernate).
Currently support the following JPA implementations: Hibernate, TopLink Essentials (Glassfish Persistence), OpenJPA.
Assumes that the EntityManagerFactory is the native one, since the
NativeJpaExtractor of the
JpaGpsDevice was used to extract it.
- Author:
- kimchy
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JpaEntityLifecycleInjectorDetector
public JpaEntityLifecycleInjectorDetector()
detectInjector
public static JpaEntityLifecycleInjector detectInjector(javax.persistence.EntityManagerFactory entityManagerFactory,
CompassSettings settings)
throws JpaGpsDeviceException
- Throws:
JpaGpsDeviceException
Copyright (c) 2004-2008 The Compass Project.