org.apache.axis2.extensions.spring.receivers
Class ApplicationContextHolder
java.lang.Object
org.apache.axis2.extensions.spring.receivers.ApplicationContextHolder
- All Implemented Interfaces:
- 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.
Method Summary |
static org.springframework.context.ApplicationContext |
getContext()
Access to spring wired beans. |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
Spring supplied interface method for injecting app context. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ApplicationContextHolder
public ApplicationContextHolder()
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
- Spring supplied interface method for injecting app context.
- Specified by:
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
getContext
public static org.springframework.context.ApplicationContext getContext()
- Access to spring wired beans.
Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.