Examples of ContextImpl


Examples of com.caucho.naming.ContextImpl

   */
  @Override
  public Object createObject(Hashtable<?,?> env)
    throws NamingException
  {
    return new ContextImpl(_namingModel, (Hashtable) env);
  }
View Full Code Here

Examples of com.caucho.naming.ContextImpl

        throw new NamingException(e.toString());
      }

      model.setClientContainer(client);
      */
      return new ContextImpl(model, (Hashtable) environment);
    }

    if (_model == null)
      _model = new HessianModel(prefix);

    return new ContextImpl(_model, (Hashtable) environment);
  }
View Full Code Here

Examples of com.caucho.naming.ContextImpl

      if (_injectManager != null)
        _injectManager.addManagedBean(_injectManager.createManagedBean(resinValidatorClass));
  
      // XXX initialcontextfactory broken when set by non-resin container
      AbstractModel model = InitialContextFactoryImpl.createRoot();
      _context = new ContextImpl(model, null);
    } finally {
      thread.setContextClassLoader(oldLoader);
    }
  }
View Full Code Here

Examples of com.caucho.naming.ContextImpl

                                  Hashtable<?,?> env)
    throws NamingException
  {
    AbstractModel model = InitialContextFactoryImpl.createRoot();

    Context context = new ContextImpl(model, (Hashtable) env);

    if (obj != null)
      return context.lookup((String) obj);
    else
      return context;
  }
View Full Code Here

Examples of com.evelopers.unimod.runtime.context.StateMachineContextImpl.ContextImpl

  /**
   */
  public DefaultContext(Event event)
  {
    context = new ContextImpl();
    this.event = event;
  }
View Full Code Here

Examples of com.google.gwt.validation.client.BaseMessageInterpolator.ContextImpl

  private <T, V, A extends Annotation> ConstraintViolation<T> createConstraintViolation(
      GwtValidationContext<T> context, G object, V value,
      ConstraintDescriptorImpl<A> constraintDescriptor,
      MessageAndPath messageAndPath) {
    MessageInterpolator messageInterpolator = context.getMessageInterpolator();
    ContextImpl messageContext = new ContextImpl(constraintDescriptor, value);
    String message = messageInterpolator.interpolate(
        messageAndPath.getMessage(), messageContext);
    ConstraintViolation<T> violation = ConstraintViolationImpl.<T> builder() //
        .setConstraintDescriptor(constraintDescriptor) //
        .setInvalidValue(value) //
View Full Code Here

Examples of com.linkedin.parseq.internal.ContextImpl

    final long planId = NEXT_PLAN_ID.getAndIncrement();
    final Logger planLogger = _loggerFactory.getLogger(LOGGER_BASE + ":planClass=" + task.getClass().getName());
    final TaskLogger taskLogger = new TaskLogger(task, _allLogger, _rootLogger, planLogger);
    final Executor taskExecutor = new SerialExecutor(_taskExecutor, new CancelPlanRejectionHandler(task));
    new ContextImpl(new PlanContext(planId, this, taskExecutor, _timerExecutor, taskLogger), task).runTask();

    InternalUtil.unwildcardTask(task).addListener(_taskDoneListener);
  }
View Full Code Here

Examples of floobits.impl.ContextImpl

            return null;
        }
        return project.getComponent(FloobitsPlugin.class);
    }
    public FloobitsPlugin(Project project) {
        context = new ContextImpl(project);
        Flog.info("Floobits plugin");
    }
View Full Code Here

Examples of fr.soleil.salsa.entity.impl.ContextImpl

     *         <code>null</code>
     */
    public static IContext extractContext(DevicePreferences preferences) {
        IContext result = null;
        if (preferences != null) {
            result = new ContextImpl();
            result.setScanServerName(preferences.getScanServer());
            result.setUserLogFile(preferences.getUserLogFile());
            result.setMaxLineNumber(preferences.getMaxLineNumber());
        }
        return result;
View Full Code Here

Examples of hermes.impl.jms.ContextImpl

            bcd.setSharedEventOrdering(BrokerConnectionDescriptor.SHARED_ORDER_NONE);

            BrokerAdminClient adminClient = BrokerAdminClient.newOrReconnectAdmin(hostName + ":" + port, brokerName, "admin" + System.currentTimeMillis(), "admin",
                    WMEInitialContextFactory.class.getName(), bcd);

            Context ctx = new ContextImpl(environment);

            /*
             * Lookup all the queues.
             */
           
            final String[] clientIds = adminClient.getClientIds();

            for (int i = 0; i < clientIds.length; i++)
            {
                final BrokerClientInfo info = adminClient.getClientInfoById(clientIds[i]);

                if (!ignoreClientGroups.contains(info.client_group))
                {
                    final QueueAdmin queue = AdminFactory.newQueue();

                    queue.setName(info.client_id);
                    queue.setClientGroup(info.client_group);
                    ctx.bind(info.client_id, queue);
                }
            }

            /*
             * Create a connection factory for each client group where there is a queue.
             */
           
            final String[] clientGroups = adminClient.getClientGroupNames() ;
           
            for (int i = 0 ; i < clientGroups.length ; i++)
            {
                final String clientGroup = (String) clientGroups[i] ;
                final QueueConnectionFactoryAdmin cfAdmin = AdminFactory.newQueueConnectionFactory();

                cfAdmin.setBrokerHost(hostName + ":" + port);
                cfAdmin.setBrokerName(brokerName);
                cfAdmin.setConnectionClientGroup(clientGroup);
                cfAdmin.setConnectionClientId("hermes-" + System.currentTimeMillis());
             
                ctx.bind(clientGroup, cfAdmin);
            }

            adminClient.destroy();

            return ctx;
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.