From f2890290c19d30e6755696398b95d998f5c14f86 Mon Sep 17 00:00:00 2001 From: Erik Hofer Date: Thu, 9 Feb 2017 14:14:11 +0100 Subject: [PATCH] Added JavaDoc. --- .../xinra/nucleus/common/ApplicationContextProvider.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/groovy/com/xinra/nucleus/common/ApplicationContextProvider.java b/src/main/groovy/com/xinra/nucleus/common/ApplicationContextProvider.java index c4210b7..deac2f7 100644 --- a/src/main/groovy/com/xinra/nucleus/common/ApplicationContextProvider.java +++ b/src/main/groovy/com/xinra/nucleus/common/ApplicationContextProvider.java @@ -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; @@ -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; }