Package java.util

Examples of java.util.Map.clear()


       
        ActionContext ac = invocation.getInvocationContext();
        Map session = ac.getSession();
        if (null != session) {
            session.clear();
        }
        return invocation.invoke();
    }
}
View Full Code Here


            Map tbl = (Map) bestIndexers.get(style);
            if (tbl == null) {
                tbl = new WeakHashMap();
                bestIndexers.put(style, tbl);
            }
            tbl.clear();
            idxList = (IndexerInfo[]) indexes.values().toArray(EmptyIndexerInfo);

            return idx;
        } catch (DBException e) {
            throw e;
View Full Code Here

        Map tbl = (Map) bestIndexers.get(style);
        if (tbl == null) {
            tbl = new WeakHashMap();
            bestIndexers.put(style, tbl);
        }
        tbl.clear();

        idxList = (IndexerInfo[]) indexes.values().toArray(EmptyIndexerInfo);
    }

    private void initialize(Indexer idx, Configuration cfg) throws XindiceException {
View Full Code Here

            }
        };

        // A little internal groping
        Map m = CallbackReference.allocations;
        m.clear();

        String arg = getName() + "1" + UNICODE;
        String value = lib.callStringCallback(cb, arg);
        WeakReference ref = new WeakReference(value);
       
View Full Code Here

    if (map != null) {
            Iterator it = map.keySet ().iterator ();
            while (it.hasNext()) {
                ((EngineLOB)it.next()).free();
      }
      map.clear();
    }
        if (rootConnection.lobHashMap != null) {
            rootConnection.lobHashMap.clear ();
        }
   
View Full Code Here

                "org.apache.geronimo.tomcat.realm.TomcatJAASRealm");
        realm.setAttribute("initParams", initParams);
        start(realm);

        // 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

        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

            }
        }

        if (cache != null) {
            synchronized (cache) {
                cache.clear();
            }
        }
    }
    protected void finalize(){
        ClassLoaderRegistry.remove(this);
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.