Class ApplicationContextHolder
- java.lang.Object
-
- org.apache.axis2.extensions.spring.receivers.ApplicationContextHolder
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
public class ApplicationContextHolder extends Object implements org.springframework.context.ApplicationContextAware
Implementation of a Spring interface who is configured in Spring's applicationContext.xml or some other Spring type of way. This class and the spring bean needed to wire it could be used as an alternative to getting the ApplicationContext from the ServletContext.
-
-
Constructor Summary
Constructors Constructor Description ApplicationContextHolder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.springframework.context.ApplicationContextgetContext()Access to spring wired beans.voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)Spring supplied interface method for injecting app context.
-
-
-
Method Detail
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansExceptionSpring supplied interface method for injecting app context.- Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
getContext
public static org.springframework.context.ApplicationContext getContext()
Access to spring wired beans.
-
-