Results 1 to 3 of 3

Thread: Injecting beans to super properties with annotations

  1. #1

    Question 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 at 08:34 AM.
    mmmm, I think I will order a cup of coffee in this beautiful spring day

  2. #2
    Join Date
    Jul 2010
    Location
    Venice, Italy
    Posts
    710

    Default

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

  3. #3

    Thumbs up Thanks....

    Simpel enough :>
    mmmm, I think I will order a cup of coffee in this beautiful spring day

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •