protected TransactionAttributeType getTxType(Advisor advisor, Joinpoint jp) { Method method = ((MethodJoinpoint) jp).getMethod(); return TxUtil.getTxType(advisor, method); }
protected Joinpoint internalGetJoinpoint() { return new MethodJoinpoint(advisedMethod); }
public Object createPerJoinpoint(Advisor advisor, Joinpoint jp) { if (jp instanceof MethodJoinpoint == false) throw new IllegalArgumentException("Joinpoint is not a method: " + jp); MethodJoinpoint methodJoinpoint = MethodJoinpoint.class.cast(jp); Method method = methodJoinpoint.getMethod(); Remove rm = (Remove) advisor.resolveAnnotation(method, Remove.class); if (rm == null) { log.warn("Cannot find @" + Remove.class.getName() + " for " + method + " assuming defaults"); rm = new RemoveImpl(); } return new StatefulRemoveInterceptor(rm.retainIfException()); }
private void applyBinding(ArrayList<AdviceBinding> applicableBindings, AdviceBinding binding) { applicableBindings.add(binding); binding.addAdvisor(advisor); advisor.pointcutResolved(info, binding, new MethodJoinpoint(info.getMethod())); }
if (Modifier.isStatic(method.getMethod().getModifiers()))
protected void handleOverriddenMethods(AdviceBinding binding) { if (overriddenMethods != null && overriddenMethods.size() > 0) { for(MethodInfo info : overriddenMethods) { Method method = info.getMethod(); PointcutMethodMatch match = binding.getPointcut().matchesExecution(this, method); if (match != null && match.isMatch()) { adviceBindings.add(binding); if (AspectManager.verbose) { logger.error("method matched binding " + binding.getPointcut().getExpr() + " " + method.toString()); } binding.addAdvisor(this); pointcutResolved(info, binding, new MethodJoinpoint(method)); } } } }
if (Modifier.isStatic(method.getMethod().getModifiers()))
return new MethodJoinpoint(((MethodInvocation)invocation).getMethod());
Method method = ((MethodJoinpoint) jp).getMethod(); int timeout = resolveTransactionTimeout(advisor, method);