Examples of begin()


Examples of org.openrdf.sail.inferencer.InferencerConnection.begin()

  {
    super.initialize();

    InferencerConnection con = getConnection();
    try {
      con.begin();
      ForwardChainingRDFSInferencerConnection.addAxiomStatements(con);
      con.commit();
    }
    finally {
      con.close();
View Full Code Here

Examples of org.osgi.framework.hooks.resolver.ResolverHookFactory.begin()

    if (refs != null)
      for (ServiceReferenceImpl<ResolverHookFactory> hookRef : refs) {
        ResolverHookFactory factory = context.getService(hookRef);
        if (factory != null) {
          try {
            ResolverHook hook = factory.begin(triggers);
            if (hook != null)
              hookRefs.add(new HookReference(hookRef, hook));
          } catch (Throwable t) {
            handleHookException(t, factory, "begin", hookRef.getBundle(), hookRefs, true); //$NON-NLS-1$
          }
View Full Code Here

Examples of org.osgi.service.coordinator.Coordinator.begin()

        // Start a coordination
        BundleContext bc = Plugin.getDefault().getBundleContext();
        ServiceReference coordSvcRef = bc.getServiceReference(Coordinator.class.getName());
        Coordinator coordinator = coordSvcRef != null ? (Coordinator) bc.getService(coordSvcRef) : null;
        Coordination coordination = coordinator != null ? coordinator.begin(ResolveOperation.class.getName(), 0) : null;

        // Begin resolve
        ResolveProcess resolve = new ResolveProcess();
        ResolverLogger logger = new ResolverLogger();
        try {
View Full Code Here

Examples of org.osgi.service.deploymentadmin.spi.ResourceProcessor.begin()

                throw new DeploymentException(CODE_PROCESSOR_NOT_FOUND, "Failed to find resource processor '" + rpName + "'!");
            }

            try {
                if (m_commitCommand.addResourceProcessor(resourceProcessor)) {
                    resourceProcessor.begin(session);
                }
                resourceProcessor.dropAllResources();
            }
            catch (Exception e) {
                log.log(LogService.LOG_ERROR, "Failed to drop all resources for resource processor '" + rpName + "'!", e);
View Full Code Here

Examples of org.ozoneDB.ExternalTransaction.begin()

                out.println ("Unknow argument: " + arg);
            }
        }

        ExternalTransaction tx = db.newTransaction();
        tx.begin();
        try {
            admin.beginBackup();

            OutputStream out = System.out;
            if (!filename.equals( "-" )) {
View Full Code Here

Examples of org.pdfclown.documents.contents.composition.BlockComposer.begin()

      150,
      pageSize.getWidth() - 110,
      pageSize.getHeight() - 250
      );

    blockComposer.begin(frame,AlignmentXEnum.Left,AlignmentYEnum.Top);
    StandardType1Font titleFont = new StandardType1Font(
      document,
      StandardType1Font.FamilyEnum.Times,
      true,
      false
View Full Code Here

Examples of org.projectodd.stilts.stomp.client.StompClient.begin()

                outboundLatch.countDown();
            }
        });
        ClientSubscription subscription = builder.start();

        ClientTransaction tx = client.begin();
        tx.send(StompMessages.createStompMessage(DESTINATION_QUEUE_ONE, "msg1"));
        tx.send(StompMessages.createStompMessage(DESTINATION_QUEUE_ONE, "msg2"));
        tx.commit();

        Assert.assertTrue("No latch timeout", outboundLatch.await(3, TimeUnit.SECONDS));
View Full Code Here

Examples of org.rythmengine.internal.IDialect.begin()

                }
            }
        }
        ctx.setDialect(d);
        push(d);
        d.begin(ctx);
    }

    public void endParse(IContext ctx) {
        IDialect d = ctx.getDialect();
        d.end(ctx);
View Full Code Here

Examples of org.sonar.api.utils.text.XmlWriter.begin()

    writeXml(writer, profile, activeRules);
  }

  private void writeXml(Writer writer, QualityProfileDto profile, List<ActiveRule> activeRules) {
    XmlWriter xml = XmlWriter.of(writer).declaration();
    xml.begin("profile");
    xml.prop("name", profile.getName());
    xml.prop("language", profile.getLanguage());
    xml.begin("rules");
    for (ActiveRule activeRule : activeRules) {
      xml.begin("rule");
View Full Code Here

Examples of org.squirrelframework.foundation.component.Heartbeat.begin()

    @Test
    public void testHeartBeat() {
        InOrder callSequence = Mockito.inOrder(methodCalls);
        Heartbeat hb = SquirrelProvider.getInstance().newInstance(Heartbeat.class);
        hb.begin();
        hb.defer(new Runnable() {
            @Override
            public void run() {
                methodCalls.method1();
            }
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.