/** * Get the transaction type * * @param m the method * @param iface the interface type * @return the transaction type */ public TransactionAttributeType getMethodTransactionType(Method m, MethodInterfaceType iface) { if (m == null) return TransactionAttributeType.SUPPORTS; TransactionAttributeType result = null; if (methodTx != null) { result = methodTx.get(m); if (result != null) return result; } result = getMethodTransactionType(m.getName(), m.getParameterTypes(), iface); // provide default if method is not found in descriptor if (result == null) result = TransactionAttributeType.REQUIRED; if (methodTx == null) methodTx = new ConcurrentHashMap<Method, TransactionAttributeType>(); methodTx.put(m, result); return result; }
/** * Get the transaction type * * @param m the method * @param iface the interface type * @return the transaction type */ public TransactionAttributeType getMethodTransactionType(Method m, MethodInterfaceType iface) { if (m == null) return TransactionAttributeType.SUPPORTS; TransactionAttributeType result = null; if (methodTx != null) { result = methodTx.get(m); if (result != null) return result; } result = getMethodTransactionType(m.getName(), m.getParameterTypes(), iface); // provide default if method is not found in descriptor if (result == null) result = TransactionAttributeType.REQUIRED; if (methodTx == null) methodTx = new ConcurrentHashMap<Method, TransactionAttributeType>(); methodTx.put(m, result); return result; }