• Post Reply Bookmark Topic Watch Topic
  • New Topic

Custom Annotation :: inject object at runtime

 
Debopam Poddar
Ranch Hand
Posts: 51
Eclipse IDE Java jQuery
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 when a object of A type will be created.

Please let me know how to implement that.


 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!