Examples of Context


Examples of org.jaxen.Context

        public List selectNodes(Object object, NamespaceContext namespaces)
        throws
            TemplateModelException
        {
            Context context = getContext(object);
            context.getContextSupport().setNamespaceContext(namespaces);
            try {
                return selectNodesForContext(context);
            }
            catch(Exception e) {
                throw new TemplateModelException(e);
View Full Code Here

Examples of org.jayasoft.woj.portal.utils.context.Context

      } else {
        call.setValue("merchant_id", "047959265100018");//0+jayasoft siret
      }

            String locale = "en";
            Context ctx = ContextHolder.getContext();
            if (ctx!=null) {
                locale = ctx.getLocale().getLanguage();
            }
            call.setValue("language", locale);
      call.setValue("order_id", String.valueOf(o.getId()));
      call.setValue("customer_id", String.valueOf(o.getBuyer().getId()));
      call.setValue("merchant_country", "fr");
View Full Code Here

Examples of org.jboss.arquillian.core.spi.context.Context

   {
      Validate.notNull(scope, "Scope must be specified");
      Validate.notNull(type, "Type must be specified");
      Validate.notNull(instance, "Instance must be specified");

      Context scopedContext = getScopedContext(scope);
      if(scopedContext == null)
      {
         throw new IllegalArgumentException("No Context registered with support for scope: " + scope);
      }
      if(!scopedContext.isActive())
      {
         throw new IllegalArgumentException("No active " + scope.getSimpleName() + " Context to bind to");
      }
      scopedContext.getObjectStore().add(type, instance);
   }
View Full Code Here

Examples of org.jboss.arquillian.impl.core.spi.context.Context

   {
      Validate.notNull(scope, "Scope must be specified");
      Validate.notNull(type, "Type must be specified");
      Validate.notNull(instance, "Instance must be specified");

      Context scopedContext = getScopedContext(scope);
      if(scopedContext == null)
      {
         throw new IllegalArgumentException("No Context registered with support for scope: " + scope);
      }
      if(!scopedContext.isActive())
      {
         throw new IllegalArgumentException("No active " + scope.getSimpleName() + " Context to bind to");
      }
      scopedContext.getObjectStore().add(type, instance);
   }
View Full Code Here

Examples of org.jboss.arquillian.spi.Context

      return activeContext.peek();
   }
  
   public void beforeSuite() throws Exception
   {
      Context suiteContext = contextLifecycle.createRestoreSuiteContext();
      try
      {
         suiteContext.fire(new BeforeSuite());
      }
      finally
      {
         activeContext.push(suiteContext);        
      }
View Full Code Here

Examples of org.jboss.errai.codegen.Context

    logger.log(com.google.gwt.core.ext.TreeLogger.Type.DEBUG, "Generating IOC Bootstrapper "
        + packageName + "." + className);

    final BuildMetaClass bootStrapClass = classStructureBuilder.getClassDefinition();
    final Context buildContext = bootStrapClass.getContext();

    final MetaClass Annotation_MC = MetaClassFactory.get(Annotation.class);

    buildContext.addInterningCallback(new InterningCallback() {
      private final Map<Set<Annotation>, String> cachedArrays = new HashMap<Set<Annotation>, String>();

      @Override
      public Statement intern(final LiteralValue<?> literalValue) {
        if (literalValue.getValue() == null) {
View Full Code Here

Examples of org.jboss.errai.codegen.framework.Context

  ClassStructureBuilder<?> classStructureBuilder;

  public void generate() {
    classStructureBuilder = implement(MarshallerFactory.class);

    Context classContext = classStructureBuilder.getClassDefinition().getContext();
    mappingContext = new MappingContext(classContext, classStructureBuilder.getClassDefinition(),
            classStructureBuilder);

    loadMarshallers();
View Full Code Here

Examples of org.jboss.errai.ioc.rebind.ioc.codegen.Context

    super(decoratesWith);
  }

  @Override
  public Statement generateDecorator(InjectableInstance<Observes> instance) {
    final Context ctx = instance.getInjectionContext().getProcessingContext().getContext();
    final MetaMethod method = instance.getMethod();
    final MetaParameter parm = instance.getParm();

    final String parmClassName = parm.getType().getFullyQualifiedName();
    final Statement bus = instance.getInjectionContext().getInjector(MessageBus.class).getType(instance);
View Full Code Here

Examples of org.jboss.errai.ui.shared.chain.Context

    }
  }

  @Override
  public Context createInitialContext() {
    Context context = new Context();
    context.put(SelectorReplacer.MAPPING, LessStyleGenerator.getStyleMapping());

    return context;
  }
View Full Code Here

Examples of org.jboss.forge.classloader.mock.sidewaysproxy.Context

      Action action1 = getProxiedInstance(A, B, typeAction1);

      Class<?> typePayload1 = C.loadClass(Payload1.class.getName());
      Payload payload1 = getProxiedInstance(A, C, typePayload1);

      Context context = new ContextImpl();
      ContextValue<Payload> value = new ContextValueImpl<Payload>();
      value.set(payload1);
      context.set(value);

      action1.handle(context);
   }
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.