Results 1 to 2 of 2

Thread: Howto: Injecting static field of other class

Hybrid View

  1. #1

    Default Howto: Injecting static field of other class

    How can I inject static field of a class to a spring bean.

    Example:

    I have a class 'Class1' which has a static field 'static1'. There's one another class 'Class2'. now I need to inject Class1.static1 into Class2.

    Note: Class1 don't have getter for static field.

    any idea?

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

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
  •