Package org.apache.cocoon.util

Examples of org.apache.cocoon.util.Settings


     * @exception ConfigurationException if an error occurs
     * @exception ContextException if an error occurs
     */
    public void configure(ExcaliburComponentManager startupManager) throws ConfigurationException, ContextException {
        SAXParser p = null;
        Settings settings = SettingsHelper.getSettings(this.context);

        Configuration roles = null;
        try {
            p = (SAXParser) startupManager.lookup(SAXParser.ROLE);
            SAXConfigurationHandler b = new PropertyAwareSAXConfigurationHandler(settings, this.getLogger());
View Full Code Here


        // Read the builtin languages definition file
        Configuration builtin;
        try {
            Source source = this.resolver.resolveURI(xconfURL);
            try {
                Settings settings = SettingsHelper.getSettings(this.context);
                SAXConfigurationHandler handler = new PropertyAwareSAXConfigurationHandler(settings, this.getLogger());
                SourceUtil.toSAX( this.manager, source, null, handler);
                builtin = handler.getConfiguration();
            } finally {
                this.resolver.release(source);
View Full Code Here

        // Read the builtin languages definition file
        Configuration builtin;
        try {
            Source source = this.resolver.resolveURI(xconfURL);
            try {
                Settings settings = SettingsHelper.getSettings(this.context);
                SAXConfigurationHandler handler = new PropertyAwareSAXConfigurationHandler(settings, getLogger());
                SourceUtil.toSAX( this.manager, source, null, handler);
                builtin = handler.getConfiguration();
            } finally {
                this.resolver.release(source);
View Full Code Here

    public ProcessingNode build(Source source)
    throws Exception {

        try {
            // Build a namespace-aware configuration object
            Settings settings = SettingsHelper.getSettings(this.context);
            NamespacedSAXConfigurationHandler handler =
                    new PropertyAwareNamespacedSAXConfigurationHandler(settings, getLogger());
            AnnotationsFilter annotationsFilter = new AnnotationsFilter(handler);
            SourceUtil.toSAX( source, annotationsFilter );
            Configuration treeConfig = handler.getConfiguration();
View Full Code Here

     * @exception ConfigurationException if an error occurs
     * @exception ContextException if an error occurs
     */
    public void configure(ExcaliburComponentManager startupManager) throws ConfigurationException, ContextException {
        SAXParser p = null;
        Settings settings = SettingsHelper.getSettings(this.context);

        Configuration roles = null;
        try {
            p = (SAXParser) startupManager.lookup(SAXParser.ROLE);
            SAXConfigurationHandler b = new PropertyAwareSAXConfigurationHandler(settings, getLogger());
View Full Code Here

     * @exception ConfigurationException if an error occurs
     * @exception ContextException if an error occurs
     */
    public void configure(ExcaliburComponentManager startupManager) throws ConfigurationException, ContextException {
        SAXParser p = null;
        Settings settings = SettingsHelper.getSettings(this.context);

        Configuration roles = null;
        try {
            p = (SAXParser) startupManager.lookup(SAXParser.ROLE);
            SAXConfigurationHandler b = new PropertyAwareSAXConfigurationHandler(settings, getLogger());
View Full Code Here

    public ProcessingNode build(Source source)
    throws Exception {

        try {
            // Build a namespace-aware configuration object
            Settings settings = SettingsHelper.getSettings(this.context);
            NamespacedSAXConfigurationHandler handler =
                    new PropertyAwareNamespacedSAXConfigurationHandler(settings, getLogger());
            AnnotationsFilter annotationsFilter = new AnnotationsFilter(handler);
            SourceUtil.toSAX( source, annotationsFilter );
            Configuration treeConfig = handler.getConfiguration();
View Full Code Here

     * For nested configurations override this function.
     * */
    public void configure(Configuration conf)
    throws ConfigurationException {
        this.globalValues = new HashMap();
        Settings settings = SettingsHelper.getSettings(this.context);
        final Iterator iter = settings.getProperties().iterator();
        while ( iter.hasNext() ) {
            final String key = (String)iter.next();
            final String value = settings.getProperty(key);
            this.globalValues.put(key, value);
        }
        final Configuration[] parameters = conf.getChildren();
        for (int i = 0; i < parameters.length; i++) {
            final String key = parameters[i].getName();
View Full Code Here

        // Read the builtin languages definition file
        Configuration builtin;
        try {
            Source source = this.resolver.resolveURI(xconfURL);
            try {
                Settings settings = SettingsHelper.getSettings(this.context);
                SAXConfigurationHandler handler = new PropertyAwareSAXConfigurationHandler(settings, getLogger());
                SourceUtil.toSAX( this.manager, source, null, handler);
                builtin = handler.getConfiguration();
            } finally {
                this.resolver.release(source);
View Full Code Here

TOP

Related Classes of org.apache.cocoon.util.Settings

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.