Examples of DelayedRefreshSourceWrapper


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

        SourceHandler oldSourceHandler = environment.getSourceHandler();
        try {
            environment.setSourceHandler(this.sourceHandler);

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

            if (this.contextSource != null) this.contextSource.recycle();
            this.contextSource = environment.resolve("");
        } finally {
View Full Code Here

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

            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

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

       
        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

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

            }
            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);
           
        } finally {       
            this.builderSelector.release(builder);
View Full Code Here

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

        SourceHandler oldSourceHandler = environment.getSourceHandler();
        try {
            environment.setSourceHandler(this.sourceHandler);

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

            if (this.contextSource != null) this.contextSource.recycle();
            this.contextSource = environment.resolve("");
        } finally {
View Full Code Here

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

            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

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

        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

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

            }
            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

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

        SourceHandler oldSourceHandler = environment.getSourceHandler();
        try {
            environment.setSourceHandler(this.sourceHandler);

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

            if (this.contextSource != null) this.contextSource.recycle();
            this.contextSource = environment.resolve("");
        } finally {
View Full Code Here

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

        long startTime = System.currentTimeMillis();
       
        if (this.rootNode == null) {
            // First call : create source
            // FIXME : make the delay configurable
            this.source = new DelayedRefreshSourceWrapper(env.resolve(this.sourceName), 1000L);
           
        } else {
            // Dispose existing tree, we will build a new one.
            disposeTree();
        }
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.