Class ApplicationContextUtil
java.lang.Object
org.apache.axis2.extensions.spring.util.ApplicationContextUtil
Util class of the spring module. It contains a method which is used to get
the spring application context for given spring web services.
- Since:
- 1.7.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.springframework.context.support.GenericApplicationContextgetSpringApplicationContext(org.apache.axis2.description.AxisService axisService) Method to get the spring application context for a spring service.
-
Field Details
-
SPRING_APPLICATION_CONTEXT
- See Also:
-
SPRING_APPLICATION_CONTEXT_LOCATION
- See Also:
-
-
Constructor Details
-
ApplicationContextUtil
public ApplicationContextUtil()
-
-
Method Details
-
getSpringApplicationContext
public static org.springframework.context.support.GenericApplicationContext getSpringApplicationContext(org.apache.axis2.description.AxisService axisService) throws org.apache.axis2.AxisFault Method to get the spring application context for a spring service. This method will first check the META-INF(or meta-inf) directory for the '<service-name>-application-context.xml file. If the file is not found then it will check whether file path is set as a parameter in service.xml. If the context file is set as a parameter for a service group, then the context will be add to the group or else it will be add to the service.- Parameters:
axisService-- Returns:
- GenericApplicationContext
- Throws:
org.apache.axis2.AxisFault
-