Package org.apache.commons.digester

Examples of org.apache.commons.digester.Digester.push()


        // Configure digester to always enable the context class loader
        digester.setUseContextClassLoader(true);
        // Add a substitutor to resolve system properties
        enableDigesterSubstitutor(digester);
        // Put the composite builder object below all of the other objects.
        digester.push(builder);
        // Parse the input stream to configure our mappings
        try
        {
            digester.parse(input);
            input.close();
View Full Code Here


        LOG.trace("Loading toolbox...");

        Digester digester = new Digester();
        digester.setValidating(false);
        digester.setUseContextClassLoader(true);
        digester.push(this);
        digester.addRuleSet(getRuleSet());
        digester.parse(input);

        LOG.trace("Toolbox loaded.");
    }
View Full Code Here

    public void read(InputStream input) throws IOException
    {
        Digester digester = new Digester();
        digester.setValidating(false);
        digester.setUseContextClassLoader(true);
        digester.push(this);
        digester.addRuleSet(getRuleSet());
        if (supportOldXml)
        {
            digester.addRuleSet(new OldXmlFactoryConfigurationRuleSet());
        }
View Full Code Here

        try {
            stream = config.openStream();
            Digester digester = createDigester();
            digester.setDebug(host.getDebug());
            digester.clear();
            digester.push(this);
            digester.parse(stream);
            stream.close();
            stream = null;
        } catch (Exception e) {
            host.log
View Full Code Here

        digester.register
                ("-//Apache Software Foundation//DTD Model MBeans Configuration File",
                        url.toString());

        // Push our registry object onto the stack
        digester.push(mbeans);

        // Configure the parsing rules
        digester.addObjectCreate
                ("mbeans-descriptors/mbean",
                        "org.apache.commons.modeler.ManagedBean");
View Full Code Here

        digester.setNamespaceAware(true);
        digester.setValidating(false);
        digester.addRuleSet(new JNDIConfigRuleSet("jndiConfig/"));

        digester.push(new NamingContext(envContext, engine));
        digester.parse(configInput);
        digester.clear();
    }

    /**
 
View Full Code Here

            Digester digester = initConfigDigester();

            // Process each specified resource path
            while ( paths.length() > 0 )
            {
                digester.push( moduleConfig );
                String path;
                int comma = paths.indexOf( ',' );
                if ( comma >= 0 )
                {
                    path = paths.substring( 0, comma ).trim();
View Full Code Here

    public void parse(Catalog catalog, URL url) throws Exception {

        // Prepare our Digester instance
        Digester digester = getDigester();
        digester.clear();
        digester.push(catalog);

        // Prepare our InputSource
        InputSource source = new InputSource(url.toExternalForm());
        source.setByteStream(url.openStream());
View Full Code Here

            fis = new FileInputStream(pathname);
            bis = new BufferedInputStream(fis);

            // Construct a digester to use for parsing
            Digester digester = new Digester();
            digester.push(this);
            digester.setValidating(false);
            digester.addFactoryCreate
                ("database/user",
                 new MemoryUserCreationFactory(this));
            digester.addFactoryCreate
View Full Code Here

    path = "web-app/filter-mapping";
    dig.addCallMethod(path, "addFilterMapping", 3);
    dig.addCallParam(path + "/filter-name", 0);
    dig.addCallParam(path + "/url-pattern", 1);
    dig.addCallParam(path + "/servlet-name", 2);
    dig.push(this);
    try {
      dig.parse(webXml);
      this.setFilterName(filterName, context);
      this.findFacesServlet(context);
      // Store Instance to context attribute.
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.