Examples of create()


Examples of com.google.appengine.tools.development.ApiProxyLocalFactory.create()

public class PlayDevEnvironment implements Environment, LocalServerEnvironment {

    public static PlayDevEnvironment create() {
        PlayDevEnvironment instance = new PlayDevEnvironment();
        ApiProxyLocalFactory factory = new ApiProxyLocalFactory();
        ApiProxyLocal proxy = factory.create(instance);
        proxy.setProperty(
                LocalDatastoreService.BACKING_STORE_PROPERTY,
                Play.getFile("tmp/datastore").getAbsolutePath());
        ApiProxy.setDelegate(proxy);
        return instance;

Examples of com.google.code.jqwicket.ui.notifier.NotifierWebMarkupContainer.create()

        "notifier1");
    add(notifier);
    add(new AjaxLink<Void>("notifier.open1") {
      @Override
      public void onClick(AjaxRequestTarget target) {
        notifier.create(
            target,
            "Test Notification",
            "This is an example of the default config, and will fade out after five seconds.");
      }
    });

Examples of com.google.devtools.moe.client.codebase.CodebaseCreator.create()

    expect(AppContext.RUN.fileSystem.findFiles(new File("/dummy/path/45")))
        .andReturn(ImmutableSet.<File>of());

    control.replay();
    CodebaseCreator cc = new SvnCodebaseCreator("testing", mockConfig, revisionHistory);
    Codebase r = cc.create(ImmutableMap.of("revision", "46"));
    assertEquals("/dummy/path/45", r.getPath().getAbsolutePath());
    assertEquals("internal", r.getProjectSpace());
    control.verify();
  }
}

Examples of com.google.devtools.moe.client.testing.FileCodebaseCreator.create()

    FileCodebaseCreator cc = new FileCodebaseCreator();

    // Validate parameters.
    ImmutableMap<String, String> s;
    try {
      cc.create(ImmutableMap.<String, String>of());
      fail("Method does not check for required options.");
    } catch (CodebaseCreationError expected) {}

    try {
      cc.create(ImmutableMap.<String, String>of("path", "FooBar", "unknown", "123"));

Examples of com.google.devtools.moe.client.writer.WriterCreator.create()

    Ui.Task t = AppContext.RUN.ui.pushTask(
        "create_writer",
        String.format("Creating Writer \"%s\"", term));
    try {
      Writer writer = wc.create(term.options);
      AppContext.RUN.ui.popTaskAndPersist(t, writer.getRoot());
      return writer;
    } catch (WritingError e) {
      AppContext.RUN.ui.error(e, "Error creating writer");
      throw e;

Examples of com.google.gdt.eclipse.designer.gxt.databinding.model.bindings.BindingInfo.create()

    // add
    final BindingInfo binding = (BindingInfo) ibinding;
    m_bindings.add(binding);
    ExecutionUtils.runLog(new RunnableEx() {
      public void run() throws Exception {
        binding.create(m_bindings);
      }
    });
    // save
    saveEdit();
  }

Examples of com.google.gdt.eclipse.designer.wizards.model.mvp.CreateViewOperation.create()

      createMvpFactoryInterface(configuration);
      {
        // create View
        ViewConfiguration viewConfiguration = configuration.getViewConfiguration();
        CreateViewOperation viewOperation = new CreateViewOperation(root);
        viewOperation.create(viewConfiguration);
      }
      createMvpFactoryImplementation(configuration);
      createMvpMappers(configuration);
      // create EntryPoint
      file =

Examples of com.google.gerrit.server.account.AccountInfoCacheFactory.create()

          loadDrafts(byKey, aic, me, newName);
          break;
      }
    }

    comments.setAccountInfoCache(aic.create());
  }

  private void loadPublished(final Map<Patch.Key, Patch> byKey,
      final AccountInfoCacheFactory aic, final String file) throws OrmException {
    for (PatchLineComment c : db.patchComments().publishedByChangeFile(changeId, file)) {

Examples of com.google.gson.GsonBuilder.create()

        this.includeFullMDC = includeFullMDC;

        // Init GSON for underscores
        GsonBuilder gsonBuilder = new GsonBuilder();
        gsonBuilder.setFieldNamingPolicy(FieldNamingPolicy.LOWER_CASE_WITH_UNDERSCORES);
        this.gson = gsonBuilder.create();
        this.patternLayout = new PatternLayout();
        this.patternLayout.setContext(new LoggerContext());
        this.patternLayout.setPattern(messagePattern);
        this.patternLayout.start();
       

Examples of com.google.gwt.dev.util.FileOracleFactory.create()

    // com.google.gwt.dev.etc.tomcat.
    //
    FileOracleFactory fof = new FileOracleFactory();
    final String tomcatEtcDir = "com/google/gwt/dev/etc/tomcat/";
    fof.addRootPackage(tomcatEtcDir, null);
    FileOracle fo = fof.create(logger);
    if (fo.isEmpty()) {
      logger.log(TreeLogger.WARN, "Could not find " + tomcatEtcDir, null);
      return null;
    }
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.