Announcement Announcement Module
No announcement yet.
Loading context file using annotation Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Loading context file using annotation

    Hi All,

    I have an interface like below where all my actual services(POJO's) are derived from "Service".

    public interface Service {

    I have to perform some common aspects for all methods in all services, so had written generic aop configuration in one context file.
    But, i have observerd developer forgetting importing this context file to their use case context file. How can I enforce importing that generic context file that has aop configured in rest of all application context files? I was looking for something like @ContextConfiguration available in spring-test so that on loading "Service", that generic context file would be loaded automatically.

    Please advice.