Class ApplicationContextUtil
- java.lang.Object
-
- org.apache.axis2.extensions.spring.util.ApplicationContextUtil
-
public class ApplicationContextUtil extends Object
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 Modifier and Type Field Description static String
SPRING_APPLICATION_CONTEXT
static String
SPRING_APPLICATION_CONTEXT_LOCATION
-
Constructor Summary
Constructors Constructor Description ApplicationContextUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.springframework.context.support.GenericApplicationContext
getSpringApplicationContext(AxisService axisService)
Method to get the spring application context for a spring service.
-
-
-
Field Detail
-
SPRING_APPLICATION_CONTEXT
public static final String SPRING_APPLICATION_CONTEXT
- See Also:
- Constant Field Values
-
SPRING_APPLICATION_CONTEXT_LOCATION
public static final String SPRING_APPLICATION_CONTEXT_LOCATION
- See Also:
- Constant Field Values
-
-
Method Detail
-
getSpringApplicationContext
public static org.springframework.context.support.GenericApplicationContext getSpringApplicationContext(AxisService axisService) throws 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 '-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:
AxisFault
-
-