Package com.ibm.commons.runtime.impl.app

Examples of com.ibm.commons.runtime.impl.app.RuntimeFactoryStandalone


   
    /**
     * Initialise the Context, needed for Services and Endpoints.
     */
    public void initEnvironment(){
        runtimeFactory = new RuntimeFactoryStandalone();
        application = runtimeFactory.initApplication(null);
        context = Context.init(application, null, null);
    }
View Full Code Here


   * Create the context (if needed)
   */
  protected Context createContext() {

    if (context == null) {
      RuntimeFactory runtimeFactory = new RuntimeFactoryStandalone() {
        @Override
        public Context initContext(Application application,
            Object request, Object response) {
          Context context = super.initContext(application, request,
              response);
          TestEnvironmentFactory.getEnvironment().decorateContext(
              context);
          return context;
        }
      };
      application = runtimeFactory.initApplication(null);
      context = Context.init(application, null, null);
    }
    return context;
  }
View Full Code Here

TOP

Related Classes of com.ibm.commons.runtime.impl.app.RuntimeFactoryStandalone

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.