Package java.util

Examples of java.util.HashMap.clear()


        host.setAttribute("className", "org.apache.catalina.core.StandardHost");
        host.setAttribute("initParams", initParams);
        start(host);

        // Default Engine
        initParams.clear();
        initParams.put("name", "Geronimo");
        initParams.put("defaultHost", "localhost");
        engine = new GBeanData(engineName, EngineGBean.GBEAN_INFO);
        engine.setAttribute("className", "org.apache.geronimo.tomcat.TomcatEngine");
        engine.setAttribute("initParams", initParams);
View Full Code Here


       start(serverInfoGBean);

       Map initParams = new HashMap();

       //Default Host
       initParams.clear();
       initParams.put("workDir","work");
       initParams.put("name","localhost");
       initParams.put("appBase","");
       host = new GBeanData(hostName, HostGBean.GBEAN_INFO);
       host.setAttribute("className", "org.apache.catalina.core.StandardHost");
View Full Code Here

       //Default Engine
//       ReferenceCollection hosts = new TestReferenceCollection();
//       hosts.add(host);

       initParams.clear();
       initParams.put("name","Geronimo");
       initParams.put("defaultHost","localhost");
       engine = new GBeanData(engineName, EngineGBean.GBEAN_INFO);
       engine.setAttribute("className", "org.apache.geronimo.tomcat.TomcatEngine");
       engine.setAttribute("initParams", initParams);
View Full Code Here

            fail("Should have caught ClassCastException");
        } catch (ClassCastException ignored) {}

        // reject non-Comparable keys
        m2.clear();
        m2.put("1", "foo");
        m2.put(new Object(), "bad key");

        try {
            m = new DoubleOrderedMap(m2);
View Full Code Here

                    usedLabelNames.put( labels[ i ].toString(), labels[ i ] );
                }
            }
        }
        usedLabelNames.clear();

        ts.parse();
        myUnion.addImportedName( ts.typeName() );

    }
View Full Code Here

        // Release any and all factory instances corresponding to this
        // class loader
        synchronized (applicationMaps) {
            HashMap map = (HashMap) applicationMaps.get(cl);
            if (map != null) {
                map.clear();
                applicationMaps.remove(cl);
            }
        }

    }
View Full Code Here

            assertEquals("intIndexed[3] is 30",
                         30, bean.getIntIndexed(3));
            assertEquals("intIndexed[4] is 140",
                         140, bean.getIntIndexed(4));

            map.clear();
            map.put("stringIndexed[1]", "New String 1");
            map.put("stringIndexed[3]", "New String 3");

            BeanUtils.populate(bean, map);
View Full Code Here

                         30, intIndexed3.intValue());
            Integer intIndexed4 = (Integer) bean.get("intIndexed", 4);
            assertEquals("intIndexed[4] is 140",
                         140, intIndexed4.intValue());

            map.clear();
            map.put("stringIndexed[1]", "New String 1");
            map.put("stringIndexed[3]", "New String 3");

            BeanUtils.populate(bean, map);
View Full Code Here

            assertEquals("intIndexed[3] is 30",
                         30, bean.getIntIndexed(3));
            assertEquals("intIndexed[4] is 140",
                         140, bean.getIntIndexed(4));

            map.clear();
            map.put("stringIndexed[1]", "New String 1");
            map.put("stringIndexed[3]", "New String 3");

            BeanUtils.populate(bean, map);
View Full Code Here

                    else
                    {
                        HashMap cache = (HashMap) fields[i].get(null);
                        if (cache != null)
                        {
                            cache.clear();
                        }
                    }
                }
            }
        }
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.