Announcement Announcement Module
Collapse
No announcement yet.
Injecting beans to super properties with annotations Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Injecting beans to super properties with annotations

    Is there a way to inject beans to the super class properties with annotation
    In xml you just use the property tag but with annotation where do you put the @Resource?
    The property and its methods are in the super class
    Thanks
    Nehemia
    Last edited by litterat; Apr 5th, 2012, 09:34 AM.

  • #2
    You @Override the setter method in your class, and apply @Autowired, @Resource or @Value to the overriden method.

    Comment


    • #3
      Thanks....

      Simpel enough :>

      Comment

      Working...
      X