Announcement Announcement Module
Collapse
No announcement yet.
Howto: Injecting static field of other class Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    Check <util:constant> and <util.property-path> elements.

    Comment

    Working...
    X