public void setContext(Context context) {
        log = Log.instance(context);
        options = Options.instance(context);
        classLoaderClass = options.get("procloader");

        // Avoid initializing Lint
        boolean warn = options.isLintSet("path");
        locations.update(log, warn, FSInfo.instance(context));

        // Setting this option is an indication that close() should defer actually closing
        // the file manager until after a specified period of inactivity.
        // This is to accomodate clients which save references to Symbols created for use
        // within doclets or annotation processors, and which then attempt to use those
        // references after the tool exits, having closed any internally managed file manager.
        // Ideally, such clients should run the tool via the javax.tools API, providing their
        // own file manager, which can be closed by the client when all use of that file
        // manager is complete.
        // If the option has a numeric value, it will be interpreted as the duration,
        // in seconds, of the period of inactivity to wait for, before the file manager
        // is actually closed.
        // See also deferredClose().
        String s = options.get("fileManager.deferClose");
        if (s != null) {
            try {
                deferredCloseTimeout = (int) (Float.parseFloat(s) * 1000);
            } catch (NumberFormatException e) {
                deferredCloseTimeout = 60 * 1000;  // default: one minute, in millis
            }
        }
    }
public void setContext ( Context context ) { log = Log . instance ( context ) ; options = Options . instance ( context ) ; classLoaderClass = options . get ( "procloader" ) ; boolean warn = options . isLintSet ( "path" ) ; locations . update ( log , warn , FSInfo . instance ( context ) ) ; String s = options . get ( "fileManager.deferClose" ) ; if ( s != null ) { try { deferredCloseTimeout = ( int ) ( Float . parseFloat ( s ) * 1000 ) ; } catch ( NumberFormatException e ) { deferredCloseTimeout = 60 * 1000 ; } } }
Set the context for JavacPathFileManager.
@param context the context containing items to be associated with the file manager