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 Details

  • 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