Package org.apache.cocoon.components.source

Examples of org.apache.cocoon.components.source.DelayedRefreshSourceWrapper


            environment.setSourceHandler(this.sourceHandler);

            if (this.source != null) {
                this.source.recycle();
            }
            this.source = new DelayedRefreshSourceWrapper(
                environment.resolve(this.sourceFileName), this.checkDelay);

            Source contextSource = null;
            try {
                contextSource = environment.resolve("");
View Full Code Here


        TreeProcessor child = new TreeProcessor(this, manager, language);
        child.setLogger(getLogger());
        child.initialize();
        // FIXME : make delay configurable
        child.source = new DelayedRefreshSourceWrapper(source, 1000L);
        return child;
    }
View Full Code Here

            }
            builder.setProcessor(this);

            if (this.source == null) {
                // FIXME : make the delay configurable
                this.source = new DelayedRefreshSourceWrapper(env.resolve(builder.getFileName()), 1000L);
            }
            root = builder.build(this.source);

            this.disposableNodes = builder.getDisposableNodes();
View Full Code Here

            this.classpath = (String)context.get(Constants.CONTEXT_CLASSPATH);
            this.workDir = (File)context.get(Constants.CONTEXT_WORK_DIR);
            try {
                // FIXME : add a configuration option for the refresh delay.
                // for now, hard-coded to 1 second.
                this.configurationFile = new DelayedRefreshSourceWrapper(
                    new URLSource((URL)context.get(Constants.CONTEXT_CONFIG_URL), this.componentManager),
                    1000L
                );

            } catch (IOException ioe) {
View Full Code Here

TOP

Related Classes of org.apache.cocoon.components.source.DelayedRefreshSourceWrapper

Copyright © 2018 www.massapicom. 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.