Examples of create()


Examples of com.scooterframework.orm.activerecord.ActiveRecord.create()

            if (currentTags != null && currentTags.contains(tagName)) continue;
            currentTags.add(tagName);
           
            ActiveRecord atag = new Tag();
            atag.setData("name=" + tagName);
            atag.create();
        }
    }

    /**
     * Registers record types that can be treated as taggable. This methods

Examples of com.sencha.gxt.core.rebind.AbstractCreator.create()

        c = new LabelProviderCreator(context, l, m);
      } else {
        logger.log(Type.ERROR, "Method uses a return type that cannot be generated");
        throw new UnableToCompleteException();
      }
      c.create();
      // build the method
      // public ValueProvider<T, V> name() { return NameValueProvider.instance;
      // }
      sw.println("public %1$s %2$s() {", m.getReturnType().getQualifiedSourceName(), m.getName());
      sw.indentln("return %1$s;", c.getInstanceExpression());

Examples of com.sencha.gxt.data.rebind.ValueProviderCreator.create()

        } else {
          // otherwise, use a value provider based on the path
          ValueProviderCreator vpc = new ValueProviderCreator(getContext(), getLogger(), path,
              pathRootType.isClassOrInterface(), valueClassType);
          vpc.setReadability(RequiredReadability.GET);
          vpc.create();
          getterExpression = String.format("%1$s.getValue(%2$s)", vpc.getInstanceExpression(), pathRootAccessor);
        }
      } else if (!isRoot()) {
        if (localName.startsWith("parent.") && null == parent.deref(localName)) {
          // if it starts with parent and the parent cant find a value , then

Examples of com.splunk.JobCollection.create()

        MockEndpoint searchMock = getMockEndpoint("mock:search-result");
        searchMock.expectedMessageCount(3);
        JobCollection jobCollection = mock(JobCollection.class);
        Job jobMock = mock(Job.class);
        when(service.getJobs()).thenReturn(jobCollection);
        when(jobCollection.create(anyString(), any(JobArgs.class))).thenReturn(jobMock);
        when(jobMock.isDone()).thenReturn(Boolean.TRUE);
        InputStream stream = ConsumerTest.class.getResourceAsStream("/resultsreader_test_data.json");
        when(jobMock.getResults(any(JobResultsArgs.class))).thenReturn(stream);

        assertMockEndpointsSatisfied();

Examples of com.spotify.helios.serviceregistration.ServiceRegistrarFactory.create()

    }

    // Create the registrar
    if (address != null) {
      log.info("Creating service registrar with address: {}", address);
      return factory.create(address);
    } else if (!Strings.isNullOrEmpty(domain)) {
      log.info("Creating service registrar for domain: {}", domain);

      // TODO: localhost:4999 is pretty specific to Spotify's registrar, this should be
      // handled in createForDomain there, rather than here.  Localhost should just pass through.

Examples of com.spotify.helios.servicescommon.coordination.DefaultZooKeeperClient.create()

    final ZooKeeperClient client = new DefaultZooKeeperClient(curator, zkClusterId);
    client.start();

    // This should work since the cluster ID exists
    client.create("/test");

    // Now let's remove the cluster ID
    client.delete(Paths.configId(zkClusterId));

    // Sleep so the watcher thread in ZooKeeperClient has a chance to update state

Examples of com.spotify.helios.servicescommon.coordination.ZooKeeperClient.create()

    final ZooKeeperClient client = new DefaultZooKeeperClient(curator, zkClusterId);
    client.start();

    // This should work since the cluster ID exists
    client.create("/test");

    // Now let's remove the cluster ID
    client.delete(Paths.configId(zkClusterId));

    // Sleep so the watcher thread in ZooKeeperClient has a chance to update state

Examples of com.stripe.model.ChargeRefundCollection.create()

  public void testChargeRefundCreate() throws StripeException {
    Charge ch = Charge.create(defaultChargeParams);
    Map<String, Object> params = new HashMap<String, Object>();
    params.put("amount", 10);
    ChargeRefundCollection refunds = ch.getRefunds();
    Refund created = refunds.create(params);
    Refund retrieved = ch.getRefunds().retrieve(created.getId());
    assertEquals(created.getId(), retrieved.getId());
  }

  @Test

Examples of com.subgraph.vega.ui.scanner.dialogs.ScanConfigDialog.create()

public class ConfigureScanHandler extends AbstractHandler {

  @Override
  public Object execute(ExecutionEvent event) throws ExecutionException {
    ScanConfigDialog dialog = new ScanConfigDialog(HandlerUtil.getActiveWorkbenchWindow(event).getShell());
    dialog.create();
    dialog.open();
    return null;
  }

Examples of com.subgraph.vega.ui.scanner.scope.EditScopeDialog.create()

    });
  }
 
  private void handleEditScopes() {
    final EditScopeDialog dialog = new EditScopeDialog(getShell());
    dialog.create();
    dialog.open();
    refreshScopeCombo();
  }
 
  private void refreshScopeCombo() {
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.