Examples of AopReference


Examples of org.springframework.ide.eclipse.aop.core.internal.model.AopReference

              else {
                jdtAspectMember = jdtAspectType;
              }

              if (jdtAspectMember != null) {
                IAopReference ref = new AopReference(info.getType(), jdtAspectMember, JdtUtils
                    .getLineNumber(jdtAspectMember), jdtTargetType, JdtUtils
                    .getLineNumber(jdtTargetType), info, file, bean);
                aopProject.addAopReference(ref);
              }
            }
          }
          else if (info instanceof BeanAspectDefinition) {
            IMethod jdtAspectMethod = null;

            if (info instanceof JavaAdvisorDefinition) {
              jdtAspectMethod = JdtUtils.getMethod(jdtAspectType, info.getAdviceMethodName(), info
                  .getAdviceMethodParameterTypes());
            }
            else {
              // validate the aspect definition
              if (info.getAdviceMethod() == null) {
                return;
              }
              jdtAspectMethod = JdtUtils.getMethod(jdtAspectType, info.getAdviceMethodName(), info
                  .getAdviceMethod().getParameterTypes());
            }

            if (jdtAspectMethod != null) {
              // long start = System.currentTimeMillis();
              Set<IMethod> matchingMethods = aspectDefinitionMatcher.matches(targetClass, bean, info,
                  aopProject.getProject().getProject());
              for (IMethod method : matchingMethods) {
                IAopReference ref = new AopReference(info.getType(), jdtAspectMethod, JdtUtils
                    .getLineNumber(jdtAspectMethod), method, JdtUtils.getLineNumber(method), info,
                    file, bean);
                aopProject.addAopReference(ref);
              }
              // System.out.println(String.format("--- matching on '%s' took '%s'", targetClass, (System
View Full Code Here

Examples of org.springframework.ide.eclipse.aop.core.internal.model.AopReference

        String className = BeansModelUtils.getBeanClass(bean, null);
        try {
          Class<?> targetClass = ClassUtils.loadClass(className);
          Set<IMethod> matchingMethods = matcher.matches(targetClass, bean, definition, project);
          for (IMethod method : matchingMethods) {
            IAopReference ref = new AopReference(definition.getType(), null, -1, method, JdtUtils
                .getLineNumber(method), definition, bean.getElementResource(), bean);
            references.add(ref);
          }
        }
        catch (Throwable e) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.