Package org.jboss.aop.joinpoint

Examples of org.jboss.aop.joinpoint.FieldJoinpoint


         || (write && binding.getPointcut().matchesSet(this, field)))
         {
            if (AspectManager.verbose) logger.debug("field matched " + ((write) ? "write" : "read") + " binding: " + field);
            adviceBindings.add(binding);
            binding.addAdvisor(this);
            pointcutResolved(newFieldInfos[i], binding, new FieldJoinpoint(field));
            if (AspectManager.maintainAdvisorMethodInterceptors && this.initialized)
            {
               interceptors[i] = newFieldInfos[i].getInterceptors();
            }
         }
View Full Code Here


            for(AdviceBinding ab : bindings)
            {
               if ((!write && ab.getPointcut().matchesGet(this, field))
                     || (write && ab.getPointcut().matchesSet(this, field)))
               {   
                  pointcutResolved(fieldInfos[i], ab, new FieldJoinpoint(field));
               }
            }
            this.updateFieldPointcutAfterRemove(fieldInfos[i], i, write);
         }        
      }
View Full Code Here

      {
         return new MethodJoinpoint(((MethodInvocation)invocation).getMethod());
      }
      if (invocation instanceof FieldInvocation)
      {
         return new FieldJoinpoint(((FieldInvocation)invocation).getField());
      }
      if (invocation instanceof ConstructorInvocation)
      {
         return new ConstructorJoinpoint(((ConstructorInvocation)invocation).getConstructor());
      }
View Full Code Here

/*      */       }
/*  440 */       if (AspectManager.verbose) System.err.println("[debug] field matched " + (write ? "write" : "read") + " binding: " + field);
/*  441 */       this.adviceBindings.add(binding);
/*  442 */       binding.addAdvisor(this);
/*  443 */       FieldInfo info = (FieldInfo)newFieldInfos.get(i);
/*  444 */       pointcutResolved(info, binding, new FieldJoinpoint(field));
/*      */     }
/*      */   }
View Full Code Here

/* 150 */           instance = ((GeneratedClassAdvisor)advisor).getPerClassJoinpointAspect(this.aspect, joinpoint);
/*     */         }
/*     */       }
/* 153 */       else if ((joinpoint instanceof FieldJoinpoint))
/*     */       {
/* 155 */         FieldJoinpoint field = (FieldJoinpoint)joinpoint;
/* 156 */         ClassAdvisor classAdvisor = (ClassAdvisor)advisor;
/* 157 */         instance = classAdvisor.getFieldAspect(field, this.aspect);
/*     */       }
/*     */       else
/*     */       {
View Full Code Here

/*  78 */           return PerVmAdvice.generateInterceptor(joinpoint, def.getFactory().createPerJoinpoint(advisor, joinpoint), adviceName);
/*     */         }
/*     */       }
/*  81 */       else if ((joinpoint instanceof FieldJoinpoint))
/*     */       {
/*  83 */         FieldJoinpoint field = (FieldJoinpoint)joinpoint;
/*  84 */         if (Modifier.isStatic(field.getField().getModifiers()))
/*     */         {
/*  86 */           ClassAdvisor classAdvisor = (ClassAdvisor)advisor;
/*  87 */           Object aspect = classAdvisor.getFieldAspect(field, def);
/*  88 */           return PerVmAdvice.generateInterceptor(joinpoint, aspect, adviceName);
/*     */         }
View Full Code Here

/*     */     {
/* 433 */       return new MethodJoinpoint(((MethodInvocation)invocation).getMethod());
/*     */     }
/* 435 */     if ((invocation instanceof FieldInvocation))
/*     */     {
/* 437 */       return new FieldJoinpoint(((FieldInvocation)invocation).getField());
/*     */     }
/* 439 */     if ((invocation instanceof ConstructorInvocation))
/*     */     {
/* 441 */       return new ConstructorJoinpoint(((ConstructorInvocation)invocation).getConstructor());
/*     */     }
View Full Code Here

/*     */         }
/* 107 */         return (Interceptor)icptr;
/*     */       }
/* 109 */       if ((joinpoint instanceof FieldJoinpoint))
/*     */       {
/* 111 */         FieldJoinpoint field = (FieldJoinpoint)joinpoint;
/* 112 */         ClassAdvisor classAdvisor = (ClassAdvisor)advisor;
/* 113 */         return (Interceptor)classAdvisor.getFieldAspect(field, this.aspect);
/*     */       }
/*     */
/* 116 */       return (Interceptor)this.aspect.getFactory().createPerJoinpoint(advisor, joinpoint);
View Full Code Here

/*  74 */           return (Interceptor)def.getFactory().createPerJoinpoint(advisor, joinpoint);
/*     */         }
/*     */       }
/*  77 */       else if ((joinpoint instanceof FieldJoinpoint))
/*     */       {
/*  79 */         FieldJoinpoint field = (FieldJoinpoint)joinpoint;
/*  80 */         if (Modifier.isStatic(field.getField().getModifiers()))
/*     */         {
/*  82 */           ClassAdvisor classAdvisor = (ClassAdvisor)advisor;
/*  83 */           return (Interceptor)classAdvisor.getFieldAspect(field, def);
/*     */         }
/*     */       }
View Full Code Here

/*  88 */     this.read = other.read;
/*     */   }
/*     */
/*     */   protected Joinpoint internalGetJoinpoint()
/*     */   {
/*  93 */     return new FieldJoinpoint(this.advisedField);
/*     */   }
View Full Code Here

TOP

Related Classes of org.jboss.aop.joinpoint.FieldJoinpoint

Copyright © 2018 www.massapicom. 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.