jjg@106: /* jjg@106: * Copyright 2005-2008 Sun Microsystems, Inc. All Rights Reserved. jjg@106: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. jjg@106: * jjg@106: * This code is free software; you can redistribute it and/or modify it jjg@106: * under the terms of the GNU General Public License version 2 only, as jjg@106: * published by the Free Software Foundation. Sun designates this jjg@106: * particular file as subject to the "Classpath" exception as provided jjg@106: * by Sun in the LICENSE file that accompanied this code. jjg@106: * jjg@106: * This code is distributed in the hope that it will be useful, but WITHOUT jjg@106: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or jjg@106: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License jjg@106: * version 2 for more details (a copy is included in the LICENSE file that jjg@106: * accompanied this code). jjg@106: * jjg@106: * You should have received a copy of the GNU General Public License version jjg@106: * 2 along with this work; if not, write to the Free Software Foundation, jjg@106: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. jjg@106: * jjg@106: * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, jjg@106: * CA 95054 USA or visit www.sun.com if you need additional information or jjg@106: * have any questions. jjg@106: */ jjg@106: jjg@106: package com.sun.tools.javac.file; jjg@106: jjg@106: import java.io.File; jjg@106: import java.io.IOException; jjg@106: import java.util.List; jjg@106: jjg@106: import com.sun.tools.javac.util.Context; jjg@106: import java.util.Map; jjg@106: import java.util.concurrent.ConcurrentHashMap; jjg@106: jjg@106: /** jjg@333: * Caching implementation of FSInfo. jjg@333: * jjg@333: *
This is NOT part of any API supported by Sun Microsystems.
jjg@333: * If you write code that depends on this, you do so at your own risk.
jjg@333: * This code and its internal interfaces are subject to change or
jjg@333: * deletion without notice.
jjg@106: */
jjg@106: public class CacheFSInfo extends FSInfo {
jjg@106:
jjg@106: /**
jjg@106: * Register a Context.Factory to create a singleton CacheFSInfo.
jjg@106: */
jjg@106: public static void preRegister(final Context context) {
jjg@106: context.put(FSInfo.class, new Context.Factory