Package com.google.enterprise.connector.manager

Examples of com.google.enterprise.connector.manager.Context.start()


    Context.refresh();
    Context context = Context.getInstance();
    context.setStandaloneContext(Context.DEFAULT_JUNIT_CONTEXT_LOCATION,
        Context.DEFAULT_JUNIT_COMMON_DIR_PATH);
    context.setFeeding(false);
    context.start();
    manager = context.getManager();
    instantiator = context.getInstantiator();
  }

  /** Test null ConfigureResponse just returns status code. */
 
View Full Code Here


    Context.refresh();
    Context context = Context.getInstance();
    context.setStandaloneContext(Context.DEFAULT_JUNIT_CONTEXT_LOCATION,
        Context.DEFAULT_JUNIT_COMMON_DIR_PATH);
    context.setFeeding(false);
    context.start();
    manager = context.getManager();
    instantiator = context.getInstantiator();
  }

  @Override
View Full Code Here

    Context.refresh();
    Context context = Context.getInstance();
    context.setStandaloneContext(APPLICATION_CONTEXT,
        Context.DEFAULT_JUNIT_COMMON_DIR_PATH);
    context.setFeeding(false);
    context.start();
    manager = context.getManager();

    req = new MockHttpServletRequest();
    res = new MockHttpServletResponse();
  }
View Full Code Here

    Context.refresh();
    Context context = Context.getInstance();
    context.setStandaloneContext(Context.DEFAULT_JUNIT_CONTEXT_LOCATION,
        Context.DEFAULT_JUNIT_COMMON_DIR_PATH);
    context.setFeeding(false);
    context.start();
    manager = context.getManager();

    req = new MockHttpServletRequest();
    res = new MockHttpServletResponse();
  }
View Full Code Here

    ac.setServletContext(servletContext);
    ac.refresh();

    Context context = Context.getInstance();
    context.setServletContext(ac, servletContext.getRealPath("/WEB-INF"));
    context.start();
    LOGGER.info("Connector Manager started.");
  }

  /**
   * Tries to normalize a pathname, as if relative to the context.
View Full Code Here

    // Inject our test ConnectorType into the TypeMap.
    TypeInfo typeInfo = new TypeInfo(GDataPropertiesConnectorType.TYPE_NAME,
        new GDataPropertiesConnectorType(), null, null);
    getTypeMap().addTypeInfo(typeInfo);
    context.start();

    // Create the Connector and verify it was seeded with initial feed host.
    ConnectorCoordinatorImpl instance = createGDataPropsConnector("gdata");
    GDataPropertiesConnector connector =
        (GDataPropertiesConnector) instance.getInstanceInfo().getConnector();
View Full Code Here

      // At this point the beans have been created, but the Connector Manager
      // has not started up.
      if (doStart) {
        context.setFeeding(false);
        context.start();
      }
    } catch (Exception e) {
      System.err.println(
          "Failed to initialize standalone application context: " + e);
      System.exit(-1);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.