org.apache.myfaces.extensions.cdi.jpa.impl
Class PersistenceHelper

java.lang.Object
  extended by org.apache.myfaces.extensions.cdi.jpa.impl.PersistenceHelper

@Typed
public class PersistenceHelper
extends Object

Helper which provides util methods for TransactionalInterceptorStrategy and LegacyTransactionalInterceptorStrategy


Method Summary
static javax.persistence.EntityManager tryToFindEntityManagerReference(Object target)
          Analyzes the given instance and returns the found reference to an injected EntityManager or null otherwise
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

tryToFindEntityManagerReference

public static javax.persistence.EntityManager tryToFindEntityManagerReference(Object target)
Analyzes the given instance and returns the found reference to an injected EntityManager or null otherwise

Parameters:
target - instance to analyze
Returns:
the injected entity-manager or null otherwise


Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.