Examples of create()


Examples of com.apress.prospring.ch13.ejb.CounterServiceHome.create()

            try {
                CounterServiceHome home = (CounterServiceHome) ctx
                        .getBean("counterServiceHome");

                service = (CounterService) home.create();

                session.setAttribute("counterService", service);
            } catch (CreateException ex) {
                ex.printStackTrace(writer);
                return;

Examples of com.arjuna.ats.internal.jts.orbspecific.TransactionFactoryImple.create()

      TransactionFactoryImple theOTS = new TransactionFactoryImple();
      Control myControl;
      grid_i localGrid = new grid_i(100, 100);
      int h, w, v;

      myControl = theOTS.create(0);

      if (myControl == null)
      {
    System.err.println("Could not create transaction!");
    System.exit(-1);

Examples of com.arjuna.ats.jbossatx.jta.RecoveryManagerService.create()

                jtaEnvironmentBean.setUserTransactionClassName(com.arjuna.ats.internal.jta.transaction.arjunacore.UserTransactionImple.class.getName());
                jtaEnvironmentBean.setTransactionSynchronizationRegistryClassName(com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionSynchronizationRegistryImple.class.getName());

                RecoveryManagerService recoveryManagerService = new RecoveryManagerService();
                try {
                    recoveryManagerService.create();
                } catch (Exception e) {
                    throw new StartException("Recovery manager create failed", e);
                }

                recoveryManagerService.start();

Examples of com.arjuna.wsc.ContextFactory.create()

                try
                {
                    final AttributedUnsignedIntType expiresElement = createCoordinationContext.getExpires() ;
                    final Long expires = (expiresElement == null ? null : new Long(expiresElement.getValue())) ;
                   
                    coordinationContext = contextFactory.create(coordinationType, expires, createCoordinationContext.getCurrentContext()) ;
                    responseAddressingContext = AddressingContext.createResponseContext(addressingContext, MessageId.getMessageId()) ;
                }
                catch (final InvalidCreateParametersException invalidCreateParametersException)
                {
                    final AddressingContext faultAddressingContext = AddressingContext.createFaultContext(addressingContext, MessageId.getMessageId()) ;

Examples of com.arjuna.wsc11.ContextFactory.create()

                try
                {
                    final Expires expiresElement = createCoordinationContext.getExpires() ;
                    final Long expires = (expiresElement == null ? null : new Long(expiresElement.getValue())) ;
                   
                    coordinationContext = contextFactory.create(coordinationType, expires, createCoordinationContext.getCurrentContext(), isSecure) ;
                    final CreateCoordinationContextResponseType response = new CreateCoordinationContextResponseType() ;
                    response.setCoordinationContext(coordinationContext) ;
                    return response;
                }
                catch (final InvalidCreateParametersException invalidCreateParametersException)

Examples of com.artemis.EntityEdit.create()

   
    EntityEdit edit1 = e1.edit();
    EntityEdit edit2 = e2.edit();
    initComponent(edit1.create(StructComponentA.class));
    initComponent(edit1.create(Position.class));
    initComponent(edit2.create(StructComponentA.class));
    initComponent(edit2.create(Position.class));
  }

  private static void initComponent(Position pos) {
    pos.x = 3;

Examples of com.artemis.reference.Ship.create()

   
    Ship shipFactory = w.createFactory(Ship.class);
    assertNotNull(shipFactory);
    assertEquals(ShipImpl.class, shipFactory.getClass());
   
    Entity e = shipFactory.create();
    Entity e2 = shipFactory.create();
   
    // 1 is an entity with zero components.
    assertEquals(2, e.getCompositionId());
    assertEquals(2, e2.getCompositionId());

Examples of com.asakusafw.testdriver.testing.flowpart.SimpleFlowPartFactory.create()

    }

    @Override
    protected void describe() {
        SimpleFlowPartFactory factory = new SimpleFlowPartFactory();
        SimpleFlowPart op = factory.create(in);
        out.add(op.out);
    }
}

Examples of com.atlassian.jira.rest.client.api.JiraRestClientFactory.create()

    setClient(TestConstants.ADMIN_USERNAME, TestConstants.ADMIN_PASSWORD);
  }

  protected void setClient(String username, String password) {
    final JiraRestClientFactory clientFactory = new AsynchronousJiraRestClientFactory();
    client = clientFactory.create(jiraUri, new BasicHttpAuthenticationHandler(username, password));
  }

  protected void setAnonymousMode() {
    final JiraRestClientFactory clientFactory = new AsynchronousJiraRestClientFactory();
    client = clientFactory.create(jiraUri, new AnonymousAuthenticationHandler());

Examples of com.atlassian.jira.rest.client.internal.async.AsynchronousJiraRestClientFactory.create()

    setClient(TestConstants.ADMIN_USERNAME, TestConstants.ADMIN_PASSWORD);
  }

  protected void setClient(String username, String password) {
    final JiraRestClientFactory clientFactory = new AsynchronousJiraRestClientFactory();
    client = clientFactory.create(jiraUri, new BasicHttpAuthenticationHandler(username, password));
  }

  protected void setAnonymousMode() {
    final JiraRestClientFactory clientFactory = new AsynchronousJiraRestClientFactory();
    client = clientFactory.create(jiraUri, new AnonymousAuthenticationHandler());
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.