title: access class variable in aspect class
body: <p>i am creating an aspect class with spring aspectj as follow</p>
  
  <pre><code>@Aspect
  public class AspectDemo {
    @Pointcut("execution(* abc.execute(..))")
       public void executeMethods() { }
  
   @Around("executeMethods()")
      public Object profile(ProceedingJoinPoint pjp) throws Throwable {
              System.out.println("Going to call the method.");
              Object output = pjp.proceed();
              System.out.println("Method execution completed.");
              return output;
      }
  
  } 
  </code></pre>
  
  <p>now i want to access the property name of class abc then how to acccess it in aspect class?
  i want to display name property of abc class in profile method</p>
  
  <p>my abc class is as follow</p>
  
  <pre><code>public class abc{
  String name;
  
  public void setName(String n){
  name=n;
  }
  public String getName(){
   return name;
  }
  
  public void execute(){
  System.out.println("i am executing");
  }
  }
  </code></pre>
  
  <p>How can i access the name in aspect class?</p>