Results 1 to 3 of 3

Thread: How to inject a static property?

  1. #1
    Join Date
    Aug 2004
    Location
    Stockholm
    Posts
    466

    Default How to inject a static property?

    Hi!

    Simple, quick question: is it at all possible to inject a static property?

    Code:
    private static someDao someDao;
    
    // static setter
    Sincerely,
    /The Cantor

    "Murphy was an optimist"
    (The O'Toole commentary on Murphy's Law)

  2. #2
    Join Date
    May 2007
    Location
    Saint Petersburg, Russian Federation
    Posts
    1,189

    Default

    Quote Originally Posted by kantorn View Post
    Hi!

    Simple, quick question: is it at all possible to inject a static property?

    Code:
    private static someDao someDao;
    
    // static setter
    Simple quick answer - MethodInvokingFactoryBean

  3. #3
    Join Date
    Aug 2004
    Location
    Stockholm
    Posts
    466

    Default

    Let me give you a simple, quick and grateful "thanks".
    Sincerely,
    /The Cantor

    "Murphy was an optimist"
    (The O'Toole commentary on Murphy's Law)

Posting Permissions

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