public CallerMethodInfo(Advisor advisor, Class<?> calledClass, Method m, long calledMethodHash, Interceptor[] in, Class<?> clazz) { super(advisor, clazz); this.calledClass = calledClass; super.setInterceptors(in); this.method = m; this.calledMethodHash = calledMethodHash; this.callingClass = advisor.getClazz(); }
public CallerConstructorInfo(Advisor advisor, Class<?> calledClass, Constructor<?> called, long calledConHash, Method wrappingMethod, Interceptor[] in, Class<?> clazz) { super(advisor, clazz); this.calledClass = calledClass; super.setInterceptors(in); this.constructor = called; this.calledConHash = calledConHash; this.callingClass = advisor.getClazz(); this.wrappingMethod = wrappingMethod; }
protected void finalizeChain(JoinPointInfo[] infos) { if (infos == null) { return; } for (int i = 0; i < infos.length; i++) { JoinPointInfo info = infos[i]; adjustInfoForAddedBinding(info); ArrayList<Interceptor> list = info.getInterceptorChain(); Interceptor[] interceptors = null; if (list.size() > 0) { interceptors = applyPrecedence(list.toArray(new Interceptor[list.size()])); } info.setInterceptors(interceptors); } }
private void finalizeChainAndRebindJoinPoint(Map<Joinpoint, Interceptor[]> oldInfos, JoinPointInfo info, JoinPointGenerator generator, OldInfoMaps oldInfoMapInstance) { adjustInfoForAddedBinding(info); List<Interceptor> list = info.getInterceptorChain(); GeneratedAdvisorInterceptor[] factories = null; if (list.size() > 0) { factories = applyPrecedence(list.toArray(new GeneratedAdvisorInterceptor[list.size()])); } info.setInterceptors(factories); if (updateOldInfo(oldInfos, info, oldInfoMapInstance)) { generator.rebindJoinpoint(info); } }