Class 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
    • Constructor Detail

      • ApplicationContextUtil

        public ApplicationContextUtil()
    • 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