org.compass.gps.device.jpa.lifecycle
Class JpaEntityLifecycleInjectorDetector

java.lang.Object
  extended by 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

Constructor Summary
JpaEntityLifecycleInjectorDetector()
           
 
Method Summary
static JpaEntityLifecycleInjector detectInjector(javax.persistence.EntityManagerFactory entityManagerFactory, CompassSettings settings)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JpaEntityLifecycleInjectorDetector

public JpaEntityLifecycleInjectorDetector()
Method Detail

detectInjector

public static JpaEntityLifecycleInjector detectInjector(javax.persistence.EntityManagerFactory entityManagerFactory,
                                                        CompassSettings settings)
                                                 throws JpaGpsDeviceException
Throws:
JpaGpsDeviceException


Copyright (c) 2004-2009 The Compass Project.