title: Can I use an annotation to modify a annotated property?
body: <p>Given</p>
  
  <pre><code>class MyPOJO {
      @XssSanitized()
      String name
  }
  
  @Retention(RetentionPolicy.RUNTIME)
  @interface XssSanitized {
  
  }
  
  import org.aspectj.lang.annotation.Aspect
  
  @Aspect
  @Slf4j
  @Component
  class XssSanitizedAspect {
  
      @Around("@within(com.es.phoenix.services.security.XssSanitized))")
      void sanitize(){
          //capture the value of the annotated String
          //make an arbritary change to the string
          //return modified string or otherwise overwrite the property
              log.info("XssSanitizedAspect is working!!!!")
      }
  }
  </code></pre>
  
  <p>Is it possible to modify the property <code>myPOJOObject.name</code> inside of <code>XssSanitizedAspect</code>? </p>
  
  <p>In reality, I need a way to XSS sanitize <code>String</code> properties.  I tried creating a custom Jackson Deserializer.  It worked, but I cannot <a href="https://github.com/FasterXML/jackson-databind/issues/685" rel="nofollow noreferrer">inject a feature toggle</a> (without a workaround that breaks all the contracts with the UI) so that solution failed me.</p>
  
  <p>I've gone through numerous examples online.  I have not found an example where the annotated property has it's value directly modified in such a way.</p>