Examples of DefaultContext


Examples of org.apache.catalina.core.DefaultContext

     *
     * @param defaultContext The new DefaultContext
     */
    public void addDefaultContext(DefaultContext defaultContext) {

        DefaultContext oldDefaultContext = this.defaultContext;
        this.defaultContext = defaultContext;
        support.firePropertyChange("defaultContext",
                                   oldDefaultContext, this.defaultContext);

    }
View Full Code Here

Examples of org.apache.myfaces.mc.test.core.mock.DefaultContext

        TestConfig testConfig = getTestJavaClass().getAnnotation(TestConfig.class);
        boolean enableJNDI = (testConfig != null) ? testConfig.enableJNDI() : true;
        if (enableJNDI)
        {
            System.setProperty(Context.INITIAL_CONTEXT_FACTORY, MockInitialContextFactory.class.getName());
            jndiContext = new DefaultContext();
            MockInitialContextFactory.setCurrentContext(jndiContext);
        }

        // Set up Servlet API Objects
        setUpServletObjects();
View Full Code Here

Examples of org.codehaus.plexus.context.DefaultContext

    //  Constructors
    // ----------------------------------------------------------------------

    public DefaultPlexusContainer()
    {
        context = new DefaultContext();
    }
View Full Code Here

Examples of org.codehaus.plexus.context.DefaultContext

        // Context
        // ----------------------------------------------------------------------------

        if ( c.getContext() != null )
        {
            containerContext = new DefaultContext( c.getContext() );
        }
        else
        {
            containerContext = new DefaultContext();
        }

        // ----------------------------------------------------------------------------
        // Configuration
        // ----------------------------------------------------------------------------
View Full Code Here

Examples of org.switchyard.internal.DefaultContext

    @Test
    public void mapToTest() throws Exception {
        RESTEasyContextMapper rcm = new RESTEasyContextMapper();
        RESTEasyBindingData rbd = new RESTEasyBindingData();

        Context context = new DefaultContext();
        context.setProperty("one", Integer.valueOf(1));
       
        rcm.mapTo(context, rbd);
        Iterator<Map.Entry<String, List<String>>> entries = rbd.getHeaders().entrySet().iterator();
        while (entries.hasNext()) {
            Map.Entry<String, List<String>> entry = entries.next();
            List<String> values = entry.getValue();
            Assert.assertTrue(values.size() == 1);
            Assert.assertTrue(entry.getKey().equals("one"));
            Assert.assertTrue(values.get(0).equals("1"));
        }
       
        RESTEasyBindingData rbd2 = new RESTEasyBindingData();
        context.removeProperties();
        List<Integer> list = new ArrayList<Integer>();
        list.add(Integer.valueOf(1));
        list.add(Integer.valueOf(2));
        list.add(Integer.valueOf(3));
        context.setProperty("numbers", list);
        rcm.mapTo(context, rbd2);
        entries = rbd2.getHeaders().entrySet().iterator();
        while (entries.hasNext()) {
            Map.Entry<String, List<String>> entry = entries.next();
            List<String> values = entry.getValue();
View Full Code Here

Examples of org.vertx.java.core.impl.DefaultContext

  This is important e.g. if a user is using a 3rd party library which returns a result on it's own thread,
  we don't then want a new context being created if the user calls runOnContext
   */
  @Override
  public void runOnContext(final Handler<Void> task) {
    DefaultContext context = getContext();
    if (context == null) {
      throw new IllegalStateException("Not on a Vert.x context");
    }
    context.runOnContext(task);
  }
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.