Class GenericApplicationContextUtil

java.lang.Object
org.wso2.carbon.springservices.GenericApplicationContextUtil

public class GenericApplicationContextUtil extends Object
  • Field Details

  • Constructor Details

    • GenericApplicationContextUtil

      public GenericApplicationContextUtil()
  • Method Details

    • getSpringApplicationContext

      public static org.springframework.context.support.GenericApplicationContext getSpringApplicationContext(InputStream applicationContxtInStream, String springBeansFilePath) throws org.apache.axis2.AxisFault
      Throws:
      org.apache.axis2.AxisFault
    • getSpringApplicationContextClassPath

      public static org.springframework.context.support.GenericApplicationContext getSpringApplicationContextClassPath(ClassLoader classLoader, String relPath) throws org.apache.axis2.AxisFault
      Throws:
      org.apache.axis2.AxisFault
    • getSpringApplicationContext

      public static org.springframework.context.support.GenericApplicationContext getSpringApplicationContext(String applicationContxtFilePath, ClassLoader springBeansClassLoader) throws org.apache.axis2.AxisFault
      Throws:
      org.apache.axis2.AxisFault
    • getSpringApplicationContext

      public static org.springframework.context.support.GenericApplicationContext getSpringApplicationContext(String applicationContxtFilePath, String springBeansFilePath) throws org.apache.axis2.AxisFault
      Throws:
      org.apache.axis2.AxisFault
    • getSpringApplicationContext

      public static org.springframework.context.support.GenericApplicationContext getSpringApplicationContext(org.apache.axis2.description.AxisService axisService, String contextLocation) throws org.apache.axis2.AxisFault
      Method to get the spring application context for a spring service
      Parameters:
      axisService - - spring service
      contextLocation - - location of the application context file
      Returns:
      - GenericApplicationContext for the given spring service
      Throws:
      org.apache.axis2.AxisFault