Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: getting bean refrence witout using WebApplicationContextUtils class

  1. #11
    Join Date
    Sep 2006
    Location
    UK
    Posts
    8,424

    Default

    Last edited by karldmoore; Aug 27th, 2007 at 02:58 PM.
    Barracuda Networks SSL VPN Lead Developer
    http://pramatr.wordpress.com
    http://twitter.com/karldmoore
    http://www.linkedin.com/in/karldmoore
    Any postings are my own opinion, and should not be attributed to my employer or clients.

  2. #12
    Join Date
    Jan 2006
    Location
    Colorado
    Posts
    19

    Default

    So, are you saying that since this class is not a Singleton and the method to access the variable is not static, that all is good?

  3. #13
    Join Date
    Sep 2006
    Location
    UK
    Posts
    8,424

    Default

    Quote Originally Posted by hotwater View Post
    So, are you saying that since this class is not a Singleton and the method to access the variable is not static, that all is good?
    Well I'm saying that if there is no static access that's a good thing, but then what's the point of making this property static in the first place?
    Last edited by karldmoore; Aug 27th, 2007 at 02:58 PM.
    Barracuda Networks SSL VPN Lead Developer
    http://pramatr.wordpress.com
    http://twitter.com/karldmoore
    http://www.linkedin.com/in/karldmoore
    Any postings are my own opinion, and should not be attributed to my employer or clients.

  4. #14
    Join Date
    Jan 2006
    Location
    Colorado
    Posts
    19

    Default

    The reason I've set the property to static is that otherwise it will be lost when non-Spring code does a new AccountClientImpl().

Posting Permissions

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