Skip to content

Commit

Permalink
Added JavaDoc.
Browse files Browse the repository at this point in the history
  • Loading branch information
erikhofer committed Feb 9, 2017
1 parent 1b446b5 commit f289029
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.xinra.nucleus.common;

import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.stereotype.Component;
Expand All @@ -21,10 +20,13 @@ public class ApplicationContextProvider implements ApplicationContextAware {
protected ApplicationContextProvider() {}

@Override
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
public void setApplicationContext(ApplicationContext applicationContext) {
ApplicationContextProvider.applicationContext = applicationContext;
}

/**
* Returns the current application context or {@code null} if there is none.
*/
public static ApplicationContext getApplicationContext() {
return applicationContext;
}
Expand Down

0 comments on commit f289029

Please sign in to comment.