Announcement Announcement Module
Collapse
No announcement yet.
Dynamically setting @Resource from properties file Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Dynamically setting @Resource from properties file

    Hi,

    I'm using @Resource(name = "MyExecutionService") type annotations in my classes to inject a particular implementation of an interface. How can I simply put "MyExecutionService" in a properties file such that all classes that use this @Resource will grab the actual implementation I want from a properties file so they don't all need to be modified if I swap in a different implementation?

    Thanks, Jason
Working...
X