Examples of Context


Examples of org.sumus.dwh.datastore.Context

        State state;
        Tuple factShip;
        readerfile = new ReaderFile(path);
        afferencecoupling = new AfferenceCoupling(arrayfiles, readerfile);
       
        Context context = buildPackageContext();
        state = buildPackageState(readerfile, afferencecoupling);
        factShip = new Tuple(getCube(DataStoreDefinition.PACKAGE_CUBE), context, state);
        add(factShip);
       
        context = buildClassContext();
View Full Code Here

Examples of org.switchyard.Context

            } else {
                connection = _connectionFactory.createConnection();
            }
            connection.start();
           
            Context context = exchange.getContext();
            session = connection.createSession(getTxEnabledFromContext(context), getAcknowledgeModeFromContext(context));
            MessageProducer producer = session.createProducer(getDestinationFromContext(session, context));
           
            Message msg;
            switch (getOutputMessageTypeFromContext(context)) {
View Full Code Here

Examples of org.syrup.Context

                    s2 = con.prepareStatementFromCache(sqlImpl().sqlStatements().updateWorkerStatement());
                    s2.setString(1, w);
                    s2.setString(2, pt.key());
                    s2.executeUpdate();
                    sqlImpl().loggingFunctions().log(pt.key(), LogEntry.STARTED, con);
                    Context c = sqlImpl().queryFunctions().readContext(pt, con);
                    con.commit();
                   
                    return c;
            }
        }
View Full Code Here

Examples of org.thymeleaf.context.Context

    /**
     * {@inheritDoc}
     */
    @Override
    public void execute(ActionContext actionContext) throws Exception {
        Context ctx = new Context();
        if (object != null) {
            ctx.setVariable("context", object);
        } else {
            ctx.setVariable("context", new HashMap<String, String>());
        }
        String result = engine.process(path, ctx);
        actionContext.addResponseHeader("Content-Type", contentType);
        actionContext.sendResponseHeaders(200, result.getBytes().length + 2);
        // actionContext.sendResponseHeaders(200, 0);
View Full Code Here

Examples of org.trifort.rootbeer.runtime.Context

      Kernel testing_item = creator.create();
      ThreadConfig thread_config = creator.getThreadConfig();

      Stopwatch watch = new Stopwatch();
      watch.start();
      Context context = rootbeer.createDefaultContext();
      context.setKernel(testing_item);
      context.setThreadConfig(thread_config);
      context.buildState();
      context.run();
      context.close();
      m_passed = true;
      watch.stop();
      m_gpuTime = watch.elapsedTimeMillis();
      watch.start();
      RootbeerGpu.setBlockDimx(thread_config.getThreadCountX());
View Full Code Here

Examples of org.usb4java.Context

     */
    @Test
    public void testInitDeinitWithContext()
    {
        assumeUsbTestsEnabled();
        final Context context = new Context();
        assertEquals(LibUsb.SUCCESS, LibUsb.init(context));
        LibUsb.exit(context);

        try
        {
View Full Code Here

Examples of org.useware.kernel.gui.reification.Context

                    dialog, globalContext, this
            );
            coordinators.put(name, coordinator);

            // top level interaction unit & context
            final Context context = new Context();

            // build reification pipeline
            Function<Context> prepareContext = new Function<Context>() {
                @Override
                public void execute(Control<Context> control) {
                    context.set(ContextKey.EVENTBUS, coordinator.getLocalBus());
                    context.set(ContextKey.COORDINATOR, coordinator);

                    control.proceed();
                }
            };

            Function<Context> readOperationMetaData = new Function<Context>() {
                @Override
                public void execute(final Control<Context> control) {
                    ReadOperationDescriptions operationMetaData = new ReadOperationDescriptions(framework.getDispatcher());
                    operationMetaData.prepareAsync(dialog, context, new ReificationBootstrap.Callback()
                    {
                        @Override
                        public void onError(Throwable caught) {
                            Log.error("ReadOperationDescriptions failed: " + caught.getMessage(), caught);
                            control.abort();
                        }

                        @Override
                        public void onSuccess() {
                            Log.info("Successfully retrieved operation meta data");
                            control.proceed();
                        }
                    });
                }
            };

            Function<Context> readResourceMetaData = new Function<Context>() {
                @Override
                public void execute(final Control<Context> control) {
                    ReificationBootstrap readResourceDescription = new ReadResourceDescription(framework.getDispatcher());
                    readResourceDescription.prepareAsync(dialog, context, new ReificationBootstrap.Callback()
                    {
                        @Override
                        public void onSuccess()
                        {
                            Log.info("Successfully retrieved resource meta data");

                            // setup & start the reification pipeline
                            ReificationPipeline pipeline = new ReificationPipeline(
                                    new UniqueIdCheckStep(),
                                    new BuildUserInterfaceStep(),
                                    new ImplicitBehaviourStep(framework.getDispatcher()),
                                    new IntegrityStep());

                            pipeline.execute(dialog, context);

                            control.proceed();
                        }

                        @Override
                        public void onError(final Throwable caught)
                        {
                            Log.error("ReadResourceDescription failed: " + caught.getMessage(), caught);
                            control.abort();
                        }
                    });
                }
            };

            Outcome<Context> outcome = new Outcome<Context>() {
                @Override
                public void onFailure(final Context context) {
                    Window.alert("Reification failed");
                }

                @Override
                public void onSuccess(final Context context) {
                    // show result
                    ReificationWidget widget = context.get(ContextKey.WIDGET);
                    assert widget !=null;

                    cachedWidgets.put(name, widget);
                    BranchActivation activation = new BranchActivation();
                    dialog.getInterfaceModel().accept(activation);
View Full Code Here

Examples of org.vertx.java.core.Context

  public void testTimer() {

    RxVertx rx=new RxVertx(vertx);

    final long startTime=System.currentTimeMillis();
    final Context initCtx=vertx.currentContext();

    Observable.zip(
      Observable.from(Arrays.asList(1,2,3,4,5,6,7,8,9,10)),
      Observable.timer(100, 100, TimeUnit.MILLISECONDS, rx.contextScheduler()),
      new Func2<Integer, Long, Integer>() {
View Full Code Here

Examples of org.watermint.sourcecolon.org.opensolaris.opengrok.search.context.Context

        if (!docs.isEmpty()) {
            sourceContext = null;
            summarizer = null;
            try {
                sourceContext = new Context(query, queryBuilder.getQueries());
                if (sourceContext.isEmpty()) {
                    sourceContext = null;
                }
                summarizer = new Summarizer(query, analyzer);
            } catch (Exception e) {
View Full Code Here

Examples of org.wso2.carbon.policybuilder.ui.internal.context.Context

  private static Log log = LogFactory.getLog(ManualAssembler.class);
  public boolean hasNewConfig = false;


  public String assemble(String input) {
    Context context = new PolicyContext();
    context.init();
   
    SymmetricBinding symBind = new SymmetricBinding(11);
    AsymmetricBinding asymBind = new AsymmetricBinding(11);
    SignedEncryptedParts signedPartsBind = new SignedEncryptedParts(true, 11);
    SignedEncryptedParts encPartsBind = new SignedEncryptedParts(false, 11);
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.