Examples of compose()


Examples of org.apache.cocoon.components.treeprocessor.InvokeContext.compose()

            // Create error context
            InvokeContext errorContext = new InvokeContext(context.isBuildingPipelineOnly());
            errorContext.enableLogging(getLogger());
            errorContext.setRedirector(context.getRedirector());
            errorContext.compose(this.manager);
            try {
                // Process error handling node
                if (node.invoke(env, errorContext)) {
                    // Exception was handled.
                    return errorContext.getProcessingPipeline();
View Full Code Here

Examples of org.apache.cocoon.components.treeprocessor.InvokeContext.compose()

          }

      // Build a new context
      errorContext = new InvokeContext();
      errorContext.enableLogging(getLogger());
      errorContext.compose(this.manager);
     
      nodeSuccessful = node.invoke(env, errorContext);
        } catch (Exception subEx) {
            getLogger().error("An exception occured while handling errors at " + node.getLocation(), subEx);
            // Rethrow it : it will either be handled by the parent sitemap or by the environment (e.g. Cocoon servlet)
View Full Code Here

Examples of org.apache.cocoon.components.treeprocessor.InvokeContext.compose()

          }

      // Build a new context
      errorContext = new InvokeContext();
      errorContext.enableLogging(getLogger());
      errorContext.compose(this.manager);
     
      nodeSuccessfull = node.invoke(env, errorContext);
        } catch (Exception subEx) {
            getLogger().error("An exception occured in while handling errors at " + node.getLocation(), subEx);
            // Rethrow it : it will either be handled by the parent sitemap or by the environment (e.g. Cocoon servlet)
View Full Code Here

Examples of org.apache.cocoon.components.treeprocessor.InvokeContext.compose()

            env.tryResetResponse();

            // Build a new context
            errorContext = new InvokeContext();
            errorContext.setLogger(getLogger());
            errorContext.compose(this.manager);

            // Create a Notifying
            NotifyingBuilder notifyingBuilder= (NotifyingBuilder)this.manager.lookup(NotifyingBuilder.ROLE);
            Notifying currentNotifying = notifyingBuilder.build(this, ex);
            this.manager.release(notifyingBuilder);
View Full Code Here

Examples of org.apache.cocoon.components.web3.Web3DataSource.compose()

                            ClassUtils.getClassLoader());
                    pool = (Web3DataSource) theClass.newInstance();
                    if (pool instanceof LogEnabled) {
                        ((LogEnabled) pool).enableLogging(getLogger());
                    }
                    pool.compose(this.manager);
                    pool.configure(c);
                    pool.initialize();
                    Web3DataSourceSelectorImpl.pools.put(obj, pool);
                }
            }
View Full Code Here

Examples of org.apache.cocoon.components.web3.Web3DataSource.compose()

                            ClassUtils.getClassLoader());
                    pool = (Web3DataSource) theClass.newInstance();
                    if (pool instanceof LogEnabled) {
                        ((LogEnabled) pool).enableLogging(getLogger());
                    }
                    pool.compose(this.manager);
                    pool.configure(c);
                    pool.initialize();
                    Web3DataSourceSelectorImpl.pools.put(obj, pool);
                }
            }
View Full Code Here

Examples of org.apache.cocoon.generation.ServerPagesGenerator.compose()

        // Generator ouptut, if output-attribute was given
        XMLByteStreamCompiler compiler = null;

        try {
            generator.enableLogging(getLogger());
            generator.compose(this.manager);
            generator.setup(resolver, objectModel, source, parameters);

            // Setup generator output
            if (outputKey == null) {
                // discard output to a "black hole"
View Full Code Here

Examples of org.apache.cocoon.generation.ServerPagesGenerator.compose()

        // Generator ouptut, if output-attribute was given
        XMLByteStreamCompiler compiler = null;

        try {
            generator.setLogger(getLogger());
            generator.compose(this.manager);
            generator.setup(resolver, objectModel, source, parameters);

            // Setup generator output
            if (outputKey == null) {
                // discard output to a "black hole"
View Full Code Here

Examples of org.apache.cocoon.generation.ServerPagesGenerator.compose()

        // Generator output, if output-attribute was given
        XMLByteStreamCompiler compiler = null;

        try {
            generator.enableLogging(getLogger());
            generator.compose(this.manager);
            generator.setup(resolver, objectModel, source, parameters);

            // Setup generator output
            if (outputKey == null) {
                // discard output to a "black hole"
View Full Code Here

Examples of org.apache.cocoon.generation.ServerPagesGenerator.compose()

        // Generator output, if output-attribute was given
        XMLByteStreamCompiler compiler = null;

        try {
            generator.enableLogging(getLogger());
            generator.compose(this.manager);
            generator.setup(resolver, objectModel, source, parameters);

            // Setup generator output
            if (outputKey == null) {
                // discard output to a "black hole"
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.