0 Replies Latest reply: Jul 12, 2011 3:25 PM by 842310 RSS

    Custom Annotation :: inject object at runtime

      I would like develop a custom annotation to inject object at runtime. The annotation will work as follows

      1. develop ValidatorClass annotation on type.
      2. If annotated on a type object will be created at runtime and injected to the object. e.g. in class A it will inject validatorimpl object to vald object/

      Please let me know how to implement that.
      package com.debopam.validate
      public interface validator{
       public String validate();
      package com.debopam.validate
      public class validatorimpl implements validator{
       public String validate(){
         return "true";
      pckage com.debopam
      public class A{
      validator vald;