daily pastebin goal
61%
SHARE
TWEET

msg_service

mano_paste Dec 18th, 2018 128 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @Component
  2. public class ApplicationSpringContext implements ApplicationContextAware {
  3.  
  4.     private static ApplicationContext context;
  5.  
  6.     public static MessagingService getMessagingService () {
  7.         return (MessagingService ) context.getBean("messageService");
  8.     }
  9.  
  10.  
  11.     @Override
  12.     public void setApplicationContext(ApplicationContext context)
  13.             throws BeansException {
  14.         ApplicationSpringContext.context = context;
  15.     }
  16. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top