@Dependent public class TransactionStrategyHelper extends Object implements Serializable
TransactionStrategy.| Constructor and Description |
|---|
TransactionStrategyHelper() |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.deltaspike.jpa.api.transaction.Transactional |
extractTransactionalAnnotation(javax.interceptor.InvocationContext context) |
Set<Class<? extends Annotation>> |
resolveEntityManagerQualifiers(org.apache.deltaspike.jpa.api.transaction.Transactional transactionalAnnotation,
Class interceptedTargetClass)
This method uses the InvocationContext to scan the @Transactional
interceptor for a manually specified Qualifier.
|
public Set<Class<? extends Annotation>> resolveEntityManagerQualifiers(org.apache.deltaspike.jpa.api.transaction.Transactional transactionalAnnotation, Class interceptedTargetClass)
This method uses the InvocationContext to scan the @Transactional interceptor for a manually specified Qualifier.
If none is given (defaults to Any.class) then we scan the intercepted instance and resolve the Qualifiers of all it's injected EntityManagers.
Please note that we will only pickup the first Qualifier on the injected EntityManager. We also do not parse for binding or &h#064;NonBinding values. A @Qualifier should not have any parameter at all.
transactionalAnnotation - the @Transactional annotation found on the intercepted classinterceptedTargetClass - the Class of the intercepted targetprotected org.apache.deltaspike.jpa.api.transaction.Transactional extractTransactionalAnnotation(javax.interceptor.InvocationContext context)
null if none present.Copyright © 2011-2013 The Apache Software Foundation. All Rights Reserved.