Examples of Context


Examples of org.jboss.fresh.ctx.Context

      error(sb.toString());
      return;
    }

    History h = null;
    Context context = getShell().getContext();
    if(project) {
      context = (Context) context.get("AppContext");
    } else if(global) {
      context = (Context) context.get("GlobalContext");
    }

    if(context == null) {
      if(project)
        error("AppContext not available");
      else if(global)
        error("GlobalContext not available");
      else
        error("Context not available");
      return;
    }

    h = (History) context.get("History");

    if(h == null) return;

    BufferObjectWriter oout = null;
    SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss");
View Full Code Here

Examples of org.jboss.gravia.arquillian.container.ContainerSetupTask.Context

        }

        MBeanServerConnection server = mbeanServerInstance.get();
        ContainerDef containerConfig = container.getContainerConfiguration();
        Map<String, String> props = containerConfig.getContainerProperties();
        Context context = new SetupContext(server, props);
        for (ContainerSetupTask task : setupTasks) {
            task.setUp(context);
        }
    }
View Full Code Here

Examples of org.jboss.gravia.provision.ResourceInstaller.Context

        return installResourceInternal(resource);
    }

    private synchronized ResourceHandle installResourceInternal(Resource resource) throws ProvisionException {
        IllegalArgumentAssertion.assertNotNull(resource, "resource");
        Context context = new DefaultInstallerContext(resource);
        return installer.installResource(context, resource);
    }
View Full Code Here

Examples of org.jboss.mbui.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> statementShim = new Function<Context>() {
                @Override
                public void execute(Control<Context> control) {
                    new StatementContextStep().execute(dialog,context);
                    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 ReificationPreperation.Callback()
                    {
                        @Override
                        public void onError(Throwable caught) {
                            Log.error("Reification failed: " + caught.getMessage());
                            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) {
                    ReificationPreperation readResourceDescription = new ReadResourceDescription(framework.getDispatcher());
                    readResourceDescription.prepareAsync(dialog, context, new ReificationPreperation.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("Reification failed: " + caught.getMessage());
                            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);
                    callback.onSuccess(widget.asWidget());
                }
View Full Code Here

Examples of org.jboss.modcluster.container.Context

        return new UndertowContext(deployment, new UndertowHost(host, new UndertowEngine(host.getServer().getValue(), this.service.getValue(), this.connector)));
    }

    @Override
    public void onDeploymentStart(Deployment deployment, Host host) {
        Context context = this.createContext(deployment, host);
        this.eventHandler.getValue().add(context);

        // TODO break into onDeploymentAdd once implemented in Undertow
        this.eventHandler.getValue().start(context);
    }
View Full Code Here

Examples of org.jboss.seam.contexts.Context

      ExternalContext externalContext = new MockExternalContext();
      MockFacesContext facesContext = new MockFacesContext( externalContext, new MockApplication() );
      facesContext.setCurrent().createViewRoot();
      facesContext.getApplication().setStateManager( new SeamStateManager( facesContext.getApplication().getStateManager() ) );
     
      Context appContext = new ApplicationContext( externalContext.getApplicationMap() );
      installComponents(appContext);
      return facesContext;
   }
View Full Code Here

Examples of org.jboss.soa.esb.message.Context

    }
   
    public void testOldSerializedContextDeserialisation()
        throws Exception
    {
        final Context context = (Context)deserialise("old_context.ser") ;
        validateOldContext(context) ;
    }
View Full Code Here

Examples of org.jboss.wsf.spi.publish.Context

        return publish(null, context, loader, urlPatternToClassNameMap, metadata);
    }

    public Context publish(ServiceTarget target, String context, ClassLoader loader, Map<String, String> urlPatternToClassNameMap, WebservicesMetaData metadata) throws Exception {
        WSEndpointDeploymentUnit unit = new WSEndpointDeploymentUnit(loader, context, urlPatternToClassNameMap, metadata);
        return new Context(context, publish(target, unit));
    }
View Full Code Here

Examples of org.jbpm.env.Context

    defaultSearchOrderList.add(key);
    defaultSearchOrder = null;
  }

  public void removeContext(String contextName) {
    Context removedContext = contexts.remove(contextName);
    if (removedContext!=null) {
      defaultSearchOrderList.remove(contextName);
      defaultSearchOrder = null;
    }
  }
View Full Code Here

Examples of org.jbpm.process.core.Context

    public Context getDefaultContext(String contextType) {
        return this.contextContainer.getDefaultContext(contextType);
    }

    public Context resolveContext(String contextId, Object param) {
        Context context = getDefaultContext(contextId);
        if (context != null) {
          context = context.resolveContext(param);
          if (context != null) {
              return context;
          }
        }
        return super.resolveContext(contextId, param);
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.