当前位置: 首页>>代码示例>>Java>>正文


Java Digester.addRule方法代码示例

本文整理汇总了Java中org.apache.tomcat.util.digester.Digester.addRule方法的典型用法代码示例。如果您正苦于以下问题:Java Digester.addRule方法的具体用法?Java Digester.addRule怎么用?Java Digester.addRule使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.apache.tomcat.util.digester.Digester的用法示例。


在下文中一共展示了Digester.addRule方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: addRuleInstances

import org.apache.tomcat.util.digester.Digester; //导入方法依赖的package包/类
@Override
public void addRuleInstances(Digester digester) {

    digester.addCallMethod(PREFIX + "/tlibversion", "setTlibVersion", 0);
    digester.addCallMethod(PREFIX + "/tlib-version", "setTlibVersion", 0);
    digester.addCallMethod(PREFIX + "/jspversion", "setJspVersion", 0);
    digester.addCallMethod(PREFIX + "/jsp-version", "setJspVersion", 0);
    digester.addRule(PREFIX, new Rule() {
        // for TLD 2.0 and later, jsp-version is set by version attribute
        @Override
        public void begin(String namespace, String name, Attributes attributes) {
            TaglibXml taglibXml = (TaglibXml) digester.peek();
            taglibXml.setJspVersion(attributes.getValue("version"));
        }
    });
    digester.addCallMethod(PREFIX + "/shortname", "setShortName", 0);
    digester.addCallMethod(PREFIX + "/short-name", "setShortName", 0);

}
 
开发者ID:nkasvosve,项目名称:beyondj,代码行数:20,代码来源:ImplicitTldRuleSet.java

示例2: addRuleInstances

import org.apache.tomcat.util.digester.Digester; //导入方法依赖的package包/类
/**
 * <p>
 * Add the set of Rule instances defined in this RuleSet to the specified
 * <code>Digester</code> instance, associating them with our namespace URI
 * (if any). This method should only be called by a Digester instance.
 * </p>
 *
 * @param digester
 *            Digester instance to which the new Rule instances should be
 *            added.
 */
@Override
public void addRuleInstances(Digester digester) {

	digester.addObjectCreate(prefix + "Host", "org.apache.catalina.core.StandardHost", "className");
	digester.addSetProperties(prefix + "Host");
	digester.addRule(prefix + "Host", new CopyParentClassLoaderRule());
	digester.addRule(prefix + "Host",
			new LifecycleListenerRule("org.apache.catalina.startup.HostConfig", "hostConfigClass"));
	digester.addSetNext(prefix + "Host", "addChild", "org.apache.catalina.Container");

	digester.addCallMethod(prefix + "Host/Alias", "addAlias", 0);

	// Cluster configuration start
	digester.addObjectCreate(prefix + "Host/Cluster", null, // MUST be
															// specified in
															// the element
			"className");
	digester.addSetProperties(prefix + "Host/Cluster");
	digester.addSetNext(prefix + "Host/Cluster", "setCluster", "org.apache.catalina.Cluster");
	// Cluster configuration end

	digester.addObjectCreate(prefix + "Host/Listener", null, // MUST be
																// specified
																// in the
																// element
			"className");
	digester.addSetProperties(prefix + "Host/Listener");
	digester.addSetNext(prefix + "Host/Listener", "addLifecycleListener", "org.apache.catalina.LifecycleListener");

	digester.addRuleSet(new RealmRuleSet(prefix + "Host/"));

	digester.addObjectCreate(prefix + "Host/Valve", null, // MUST be
															// specified in
															// the element
			"className");
	digester.addSetProperties(prefix + "Host/Valve");
	digester.addSetNext(prefix + "Host/Valve", "addValve", "org.apache.catalina.Valve");

}
 
开发者ID:how2j,项目名称:lazycat,代码行数:51,代码来源:HostRuleSet.java

示例3: addRuleInstances

import org.apache.tomcat.util.digester.Digester; //导入方法依赖的package包/类
/**
 * <p>
 * Add the set of Rule instances defined in this RuleSet to the specified
 * <code>Digester</code> instance, associating them with our namespace URI
 * (if any). This method should only be called by a Digester instance.
 * </p>
 *
 * @param digester
 *            Digester instance to which the new Rule instances should be
 *            added.
 */
@Override
public void addRuleInstances(Digester digester) {

	digester.addObjectCreate(prefix + "Engine", "org.apache.catalina.core.StandardEngine", "className");
	digester.addSetProperties(prefix + "Engine");
	digester.addRule(prefix + "Engine",
			new LifecycleListenerRule("org.apache.catalina.startup.EngineConfig", "engineConfigClass"));
	digester.addSetNext(prefix + "Engine", "setContainer", "org.apache.catalina.Container");

	// Cluster configuration start
	digester.addObjectCreate(prefix + "Engine/Cluster", null, // MUST be
																// specified
																// in the
																// element
			"className");
	digester.addSetProperties(prefix + "Engine/Cluster");
	digester.addSetNext(prefix + "Engine/Cluster", "setCluster", "org.apache.catalina.Cluster");
	// Cluster configuration end

	digester.addObjectCreate(prefix + "Engine/Listener", null, // MUST be
																// specified
																// in the
																// element
			"className");
	digester.addSetProperties(prefix + "Engine/Listener");
	digester.addSetNext(prefix + "Engine/Listener", "addLifecycleListener",
			"org.apache.catalina.LifecycleListener");

	digester.addRuleSet(new RealmRuleSet(prefix + "Engine/"));

	digester.addObjectCreate(prefix + "Engine/Valve", null, // MUST be
															// specified in
															// the element
			"className");
	digester.addSetProperties(prefix + "Engine/Valve");
	digester.addSetNext(prefix + "Engine/Valve", "addValve", "org.apache.catalina.Valve");

}
 
开发者ID:how2j,项目名称:lazycat,代码行数:50,代码来源:EngineRuleSet.java

示例4: addRuleInstances

import org.apache.tomcat.util.digester.Digester; //导入方法依赖的package包/类
/**
 * <p>
 * Add the set of Rule instances defined in this RuleSet to the specified
 * <code>Digester</code> instance, associating them with our namespace URI
 * (if any). This method should only be called by a Digester instance.
 * </p>
 *
 * @param digester
 *            Digester instance to which the new Rule instances should be
 *            added.
 */
@Override
public void addRuleInstances(Digester digester) {

	digester.addObjectCreate(prefix + "Ejb", "org.apache.catalina.deploy.ContextEjb");
	digester.addRule(prefix + "Ejb", new SetAllPropertiesRule());
	digester.addRule(prefix + "Ejb", new SetNextNamingRule("addEjb", "org.apache.catalina.deploy.ContextEjb"));

	digester.addObjectCreate(prefix + "Environment", "org.apache.catalina.deploy.ContextEnvironment");
	digester.addSetProperties(prefix + "Environment");
	digester.addRule(prefix + "Environment",
			new SetNextNamingRule("addEnvironment", "org.apache.catalina.deploy.ContextEnvironment"));

	digester.addObjectCreate(prefix + "LocalEjb", "org.apache.catalina.deploy.ContextLocalEjb");
	digester.addRule(prefix + "LocalEjb", new SetAllPropertiesRule());
	digester.addRule(prefix + "LocalEjb",
			new SetNextNamingRule("addLocalEjb", "org.apache.catalina.deploy.ContextLocalEjb"));

	digester.addObjectCreate(prefix + "Resource", "org.apache.catalina.deploy.ContextResource");
	digester.addRule(prefix + "Resource", new SetAllPropertiesRule());
	digester.addRule(prefix + "Resource",
			new SetNextNamingRule("addResource", "org.apache.catalina.deploy.ContextResource"));

	digester.addObjectCreate(prefix + "ResourceEnvRef", "org.apache.catalina.deploy.ContextResourceEnvRef");
	digester.addRule(prefix + "ResourceEnvRef", new SetAllPropertiesRule());
	digester.addRule(prefix + "ResourceEnvRef",
			new SetNextNamingRule("addResourceEnvRef", "org.apache.catalina.deploy.ContextResourceEnvRef"));

	digester.addObjectCreate(prefix + "ServiceRef", "org.apache.catalina.deploy.ContextService");
	digester.addRule(prefix + "ServiceRef", new SetAllPropertiesRule());
	digester.addRule(prefix + "ServiceRef",
			new SetNextNamingRule("addService", "org.apache.catalina.deploy.ContextService"));

	digester.addObjectCreate(prefix + "Transaction", "org.apache.catalina.deploy.ContextTransaction");
	digester.addRule(prefix + "Transaction", new SetAllPropertiesRule());
	digester.addRule(prefix + "Transaction",
			new SetNextNamingRule("setTransaction", "org.apache.catalina.deploy.ContextTransaction"));

}
 
开发者ID:how2j,项目名称:lazycat,代码行数:50,代码来源:NamingRuleSet.java

示例5: addRuleInstances

import org.apache.tomcat.util.digester.Digester; //导入方法依赖的package包/类
/**
 * <p>Add the set of Rule instances defined in this RuleSet to the
 * specified <code>Digester</code> instance, associating them with
 * our namespace URI (if any).  This method should only be called
 * by a Digester instance.</p>
 *
 * @param digester Digester instance to which the new Rule instances
 *  should be added.
 */
@Override
public void addRuleInstances(Digester digester) {

    digester.addObjectCreate(prefix + "Host",
                             "org.apache.catalina.core.StandardHost",
                             "className");
    digester.addSetProperties(prefix + "Host");
    digester.addRule(prefix + "Host",
                     new CopyParentClassLoaderRule());
    digester.addRule(prefix + "Host",
                     new LifecycleListenerRule
                     ("org.apache.catalina.startup.HostConfig",
                      "hostConfigClass"));
    digester.addSetNext(prefix + "Host",
                        "addChild",
                        "org.apache.catalina.Container");

    digester.addCallMethod(prefix + "Host/Alias",
                           "addAlias", 0);

    //Cluster configuration start
    digester.addObjectCreate(prefix + "Host/Cluster",
                             null, // MUST be specified in the element
                             "className");
    digester.addSetProperties(prefix + "Host/Cluster");
    digester.addSetNext(prefix + "Host/Cluster",
                        "setCluster",
                        "org.apache.catalina.Cluster");
    //Cluster configuration end

    digester.addObjectCreate(prefix + "Host/Listener",
                             null, // MUST be specified in the element
                             "className");
    digester.addSetProperties(prefix + "Host/Listener");
    digester.addSetNext(prefix + "Host/Listener",
                        "addLifecycleListener",
                        "org.apache.catalina.LifecycleListener");

    digester.addRuleSet(new RealmRuleSet(prefix + "Host/"));

    digester.addObjectCreate(prefix + "Host/Valve",
                             null, // MUST be specified in the element
                             "className");
    digester.addSetProperties(prefix + "Host/Valve");
    digester.addSetNext(prefix + "Host/Valve",
                        "addValve",
                        "org.apache.catalina.Valve");

}
 
开发者ID:liaokailin,项目名称:tomcat7,代码行数:59,代码来源:HostRuleSet.java

示例6: addRuleInstances

import org.apache.tomcat.util.digester.Digester; //导入方法依赖的package包/类
/**
 * <p>Add the set of Rule instances defined in this RuleSet to the
 * specified <code>Digester</code> instance, associating them with
 * our namespace URI (if any).  This method should only be called
 * by a Digester instance.</p>
 *
 * @param digester Digester instance to which the new Rule instances
 *  should be added.
 */
@Override
public void addRuleInstances(Digester digester) {
    
    digester.addObjectCreate(prefix + "Engine",
                             "org.apache.catalina.core.StandardEngine",
                             "className");
    digester.addSetProperties(prefix + "Engine");
    digester.addRule(prefix + "Engine",
                     new LifecycleListenerRule
                     ("org.apache.catalina.startup.EngineConfig",
                      "engineConfigClass"));
    digester.addSetNext(prefix + "Engine",
                        "setContainer",
                        "org.apache.catalina.Container");

    //Cluster configuration start
    digester.addObjectCreate(prefix + "Engine/Cluster",
                             null, // MUST be specified in the element
                             "className");
    digester.addSetProperties(prefix + "Engine/Cluster");
    digester.addSetNext(prefix + "Engine/Cluster",
                        "setCluster",
                        "org.apache.catalina.Cluster");
    //Cluster configuration end

    digester.addObjectCreate(prefix + "Engine/Listener",
                             null, // MUST be specified in the element
                             "className");
    digester.addSetProperties(prefix + "Engine/Listener");
    digester.addSetNext(prefix + "Engine/Listener",
                        "addLifecycleListener",
                        "org.apache.catalina.LifecycleListener");


    digester.addRuleSet(new RealmRuleSet(prefix + "Engine/"));

    digester.addObjectCreate(prefix + "Engine/Valve",
                             null, // MUST be specified in the element
                             "className");
    digester.addSetProperties(prefix + "Engine/Valve");
    digester.addSetNext(prefix + "Engine/Valve",
                        "addValve",
                        "org.apache.catalina.Valve");

}
 
开发者ID:liaokailin,项目名称:tomcat7,代码行数:55,代码来源:EngineRuleSet.java

示例7: addRuleInstances

import org.apache.tomcat.util.digester.Digester; //导入方法依赖的package包/类
/**
 * <p>Add the set of Rule instances defined in this RuleSet to the
 * specified <code>Digester</code> instance, associating them with
 * our namespace URI (if any).  This method should only be called
 * by a Digester instance.</p>
 *
 * @param digester Digester instance to which the new Rule instances
 *  should be added.
 */
@Override
public void addRuleInstances(Digester digester) {

    digester.addObjectCreate(prefix + "Ejb",
                             "org.apache.catalina.deploy.ContextEjb");
    digester.addRule(prefix + "Ejb", new SetAllPropertiesRule());
    digester.addRule(prefix + "Ejb",
            new SetNextNamingRule("addEjb",
                        "org.apache.catalina.deploy.ContextEjb"));

    digester.addObjectCreate(prefix + "Environment",
                             "org.apache.catalina.deploy.ContextEnvironment");
    digester.addSetProperties(prefix + "Environment");
    digester.addRule(prefix + "Environment",
                        new SetNextNamingRule("addEnvironment",
                        "org.apache.catalina.deploy.ContextEnvironment"));

    digester.addObjectCreate(prefix + "LocalEjb",
                             "org.apache.catalina.deploy.ContextLocalEjb");
    digester.addRule(prefix + "LocalEjb", new SetAllPropertiesRule());
    digester.addRule(prefix + "LocalEjb",
            new SetNextNamingRule("addLocalEjb",
                        "org.apache.catalina.deploy.ContextLocalEjb"));

    digester.addObjectCreate(prefix + "Resource",
                             "org.apache.catalina.deploy.ContextResource");
    digester.addRule(prefix + "Resource", new SetAllPropertiesRule());
    digester.addRule(prefix + "Resource",
            new SetNextNamingRule("addResource",
                        "org.apache.catalina.deploy.ContextResource"));

    digester.addObjectCreate(prefix + "ResourceEnvRef",
        "org.apache.catalina.deploy.ContextResourceEnvRef");
    digester.addRule(prefix + "ResourceEnvRef", new SetAllPropertiesRule());
    digester.addRule(prefix + "ResourceEnvRef",
            new SetNextNamingRule("addResourceEnvRef",
                        "org.apache.catalina.deploy.ContextResourceEnvRef"));

    digester.addObjectCreate(prefix + "ServiceRef",
        "org.apache.catalina.deploy.ContextService");
    digester.addRule(prefix + "ServiceRef", new SetAllPropertiesRule());
    digester.addRule(prefix + "ServiceRef",
            new SetNextNamingRule("addService",
                        "org.apache.catalina.deploy.ContextService"));

    digester.addObjectCreate(prefix + "Transaction",
        "org.apache.catalina.deploy.ContextTransaction");
    digester.addRule(prefix + "Transaction", new SetAllPropertiesRule());
    digester.addRule(prefix + "Transaction",
            new SetNextNamingRule("setTransaction",
                        "org.apache.catalina.deploy.ContextTransaction"));

}
 
开发者ID:liaokailin,项目名称:tomcat7,代码行数:63,代码来源:NamingRuleSet.java

示例8: addRuleInstances

import org.apache.tomcat.util.digester.Digester; //导入方法依赖的package包/类
/**
 * <p>Add the set of Rule instances defined in this RuleSet to the
 * specified <code>Digester</code> instance, associating them with
 * our namespace URI (if any).  This method should only be called
 * by a Digester instance.</p>
 *
 * @param digester Digester instance to which the new Rule instances
 *  should be added.
 */
public void addRuleInstances(Digester digester) {

    digester.addObjectCreate(prefix + "Host",
                             "org.apache.catalina.core.StandardHost",
                             "className");
    digester.addSetProperties(prefix + "Host");
    digester.addRule(prefix + "Host",
                     new CopyParentClassLoaderRule());
    digester.addRule(prefix + "Host",
                     new LifecycleListenerRule
                     ("org.apache.catalina.startup.HostConfig",
                      "hostConfigClass"));
    digester.addSetNext(prefix + "Host",
                        "addChild",
                        "org.apache.catalina.Container");

    digester.addCallMethod(prefix + "Host/Alias",
                           "addAlias", 0);

    //Cluster configuration start
    digester.addObjectCreate(prefix + "Host/Cluster",
                             null, // MUST be specified in the element
                             "className");
    digester.addSetProperties(prefix + "Host/Cluster");
    digester.addSetNext(prefix + "Host/Cluster",
                        "setCluster",
                        "org.apache.catalina.Cluster");
    //Cluster configuration end

    digester.addObjectCreate(prefix + "Host/Listener",
                             null, // MUST be specified in the element
                             "className");
    digester.addSetProperties(prefix + "Host/Listener");
    digester.addSetNext(prefix + "Host/Listener",
                        "addLifecycleListener",
                        "org.apache.catalina.LifecycleListener");

    digester.addRuleSet(new RealmRuleSet(prefix + "Host/"));

    digester.addObjectCreate(prefix + "Host/Valve",
                             null, // MUST be specified in the element
                             "className");
    digester.addSetProperties(prefix + "Host/Valve");
    digester.addSetNext(prefix + "Host/Valve",
                        "addValve",
                        "org.apache.catalina.Valve");

}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:58,代码来源:HostRuleSet.java

示例9: addRuleInstances

import org.apache.tomcat.util.digester.Digester; //导入方法依赖的package包/类
/**
 * <p>Add the set of Rule instances defined in this RuleSet to the
 * specified <code>Digester</code> instance, associating them with
 * our namespace URI (if any).  This method should only be called
 * by a Digester instance.</p>
 *
 * @param digester Digester instance to which the new Rule instances
 *  should be added.
 */
public void addRuleInstances(Digester digester) {
    
    digester.addObjectCreate(prefix + "Engine",
                             "org.apache.catalina.core.StandardEngine",
                             "className");
    digester.addSetProperties(prefix + "Engine");
    digester.addRule(prefix + "Engine",
                     new LifecycleListenerRule
                     ("org.apache.catalina.startup.EngineConfig",
                      "engineConfigClass"));
    digester.addSetNext(prefix + "Engine",
                        "setContainer",
                        "org.apache.catalina.Container");

    //Cluster configuration start
    digester.addObjectCreate(prefix + "Engine/Cluster",
                             null, // MUST be specified in the element
                             "className");
    digester.addSetProperties(prefix + "Engine/Cluster");
    digester.addSetNext(prefix + "Engine/Cluster",
                        "setCluster",
                        "org.apache.catalina.Cluster");
    //Cluster configuration end

    digester.addObjectCreate(prefix + "Engine/Listener",
                             null, // MUST be specified in the element
                             "className");
    digester.addSetProperties(prefix + "Engine/Listener");
    digester.addSetNext(prefix + "Engine/Listener",
                        "addLifecycleListener",
                        "org.apache.catalina.LifecycleListener");


    digester.addRuleSet(new RealmRuleSet(prefix + "Engine/"));

    digester.addObjectCreate(prefix + "Engine/Valve",
                             null, // MUST be specified in the element
                             "className");
    digester.addSetProperties(prefix + "Engine/Valve");
    digester.addSetNext(prefix + "Engine/Valve",
                        "addValve",
                        "org.apache.catalina.Valve");

}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:54,代码来源:EngineRuleSet.java

示例10: addRuleInstances

import org.apache.tomcat.util.digester.Digester; //导入方法依赖的package包/类
/**
 * <p>Add the set of Rule instances defined in this RuleSet to the
 * specified <code>Digester</code> instance, associating them with
 * our namespace URI (if any).  This method should only be called
 * by a Digester instance.</p>
 *
 * @param digester Digester instance to which the new Rule instances
 *  should be added.
 */
public void addRuleInstances(Digester digester) {

    digester.addObjectCreate(prefix + "Ejb",
                             "org.apache.catalina.deploy.ContextEjb");
    digester.addRule(prefix + "Ejb", new SetAllPropertiesRule());
    digester.addRule(prefix + "Ejb",
            new SetNextNamingRule("addEjb",
                        "org.apache.catalina.deploy.ContextEjb"));

    digester.addObjectCreate(prefix + "Environment",
                             "org.apache.catalina.deploy.ContextEnvironment");
    digester.addSetProperties(prefix + "Environment");
    digester.addRule(prefix + "Environment",
                        new SetNextNamingRule("addEnvironment",
                        "org.apache.catalina.deploy.ContextEnvironment"));

    digester.addObjectCreate(prefix + "LocalEjb",
                             "org.apache.catalina.deploy.ContextLocalEjb");
    digester.addRule(prefix + "LocalEjb", new SetAllPropertiesRule());
    digester.addRule(prefix + "LocalEjb",
            new SetNextNamingRule("addLocalEjb",
                        "org.apache.catalina.deploy.ContextLocalEjb"));

    digester.addObjectCreate(prefix + "Resource",
                             "org.apache.catalina.deploy.ContextResource");
    digester.addRule(prefix + "Resource", new SetAllPropertiesRule());
    digester.addRule(prefix + "Resource",
            new SetNextNamingRule("addResource",
                        "org.apache.catalina.deploy.ContextResource"));

    digester.addObjectCreate(prefix + "ResourceEnvRef",
        "org.apache.catalina.deploy.ContextResourceEnvRef");
    digester.addRule(prefix + "ResourceEnvRef", new SetAllPropertiesRule());
    digester.addRule(prefix + "ResourceEnvRef",
            new SetNextNamingRule("addResourceEnvRef",
                        "org.apache.catalina.deploy.ContextResourceEnvRef"));

    digester.addObjectCreate(prefix + "ServiceRef",
        "org.apache.catalina.deploy.ContextService");
    digester.addRule(prefix + "ServiceRef", new SetAllPropertiesRule());
    digester.addRule(prefix + "ServiceRef",
            new SetNextNamingRule("addService",
                        "org.apache.catalina.deploy.ContextService"));

    digester.addObjectCreate(prefix + "Transaction",
        "org.apache.catalina.deploy.ContextTransaction");
    digester.addRule(prefix + "Transaction", new SetAllPropertiesRule());
    digester.addRule(prefix + "Transaction",
            new SetNextNamingRule("setTransaction",
                        "org.apache.catalina.deploy.ContextTransaction"));

}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:62,代码来源:NamingRuleSet.java

示例11: addRuleInstances

import org.apache.tomcat.util.digester.Digester; //导入方法依赖的package包/类
/**
 * <p>Add the set of Rule instances defined in this RuleSet to the
 * specified <code>Digester</code> instance, associating them with
 * our namespace URI (if any).  This method should only be called
 * by a Digester instance.</p>
 *
 * @param digester Digester instance to which the new Rule instances
 *  should be added.
 */
@Override
public void addRuleInstances(Digester digester) {
    
    digester.addObjectCreate(prefix + "Engine",
                             "org.apache.catalina.core.StandardEngine",
                             "className");
    digester.addSetProperties(prefix + "Engine");
    // 为Engine增加生命周期监听 例如调用start()方法 如果不了解这一点 可能会找不到代码调用的地方
 // LifecycleListenerRule 本身也是一个解析规则Rule 继续进去看
    digester.addRule(prefix + "Engine",
                     new LifecycleListenerRule
                     ("org.apache.catalina.startup.EngineConfig",
                      "engineConfigClass"));
    //容器是从Engine阶段开始算的 Server Service并不算作容器的一部分
    digester.addSetNext(prefix + "Engine",
                        "setContainer",
                        "org.apache.catalina.Container");

    //TODO Cluster configuration start
    digester.addObjectCreate(prefix + "Engine/Cluster",
                             null, // MUST be specified in the element
                             "className");
    digester.addSetProperties(prefix + "Engine/Cluster");
    digester.addSetNext(prefix + "Engine/Cluster",
                        "setCluster",
                        "org.apache.catalina.Cluster");
    //Cluster configuration end

    digester.addObjectCreate(prefix + "Engine/Listener",
                             null, // MUST be specified in the element
                             "className");
    digester.addSetProperties(prefix + "Engine/Listener");
    digester.addSetNext(prefix + "Engine/Listener",
                        "addLifecycleListener",
                        "org.apache.catalina.LifecycleListener");


    digester.addRuleSet(new RealmRuleSet(prefix + "Engine/"));

    digester.addObjectCreate(prefix + "Engine/Valve",
                             null, // MUST be specified in the element
                             "className");
    digester.addSetProperties(prefix + "Engine/Valve");
    digester.addSetNext(prefix + "Engine/Valve",
                        "addValve",
                        "org.apache.catalina.Valve");

}
 
开发者ID:sunmingshuai,项目名称:apache-tomcat-7.0.73-with-comment,代码行数:58,代码来源:EngineRuleSet.java

示例12: addRuleInstances

import org.apache.tomcat.util.digester.Digester; //导入方法依赖的package包/类
/**
 * <p>Add the set of Rule instances defined in this RuleSet to the
 * specified <code>Digester</code> instance, associating them with
 * our namespace URI (if any).  This method should only be called
 * by a Digester instance.</p>
 *
 * @param digester Digester instance to which the new Rule instances
 *  should be added.
 */
@Override
public void addRuleInstances(Digester digester) {

    // Note the sharing of state between rules
    TaglibUriRule taglibUriRule = new TaglibUriRule(); 

    digester.addRule(prefix + "taglib", new TaglibRule(taglibUriRule));
    
    digester.addRule(prefix + "taglib/uri", taglibUriRule);

    digester.addRule(prefix + "taglib/listener/listener-class",
            new TaglibListenerRule(taglibUriRule));

}
 
开发者ID:liaokailin,项目名称:tomcat7,代码行数:24,代码来源:TldRuleSet.java

示例13: addRuleInstances

import org.apache.tomcat.util.digester.Digester; //导入方法依赖的package包/类
/**
 * <p>
 * Add the set of Rule instances defined in this RuleSet to the specified
 * <code>Digester</code> instance, associating them with our namespace URI
 * (if any). This method should only be called by a Digester instance.
 * </p>
 *
 * @param digester
 *            Digester instance to which the new Rule instances should be
 *            added.
 */
@Override
public void addRuleInstances(Digester digester) {

	// Note the sharing of state between rules
	TaglibUriRule taglibUriRule = new TaglibUriRule();

	digester.addRule(prefix + "taglib", new TaglibRule(taglibUriRule));

	digester.addRule(prefix + "taglib/uri", taglibUriRule);

	digester.addRule(prefix + "taglib/listener/listener-class", new TaglibListenerRule(taglibUriRule));

}
 
开发者ID:how2j,项目名称:lazycat,代码行数:25,代码来源:TldRuleSet.java

示例14: addRuleInstances

import org.apache.tomcat.util.digester.Digester; //导入方法依赖的package包/类
/**
 * <p>Add the set of Rule instances defined in this RuleSet to the
 * specified <code>Digester</code> instance, associating them with
 * our namespace URI (if any).  This method should only be called
 * by a Digester instance.</p>
 *
 * @param digester Digester instance to which the new Rule instances
 *  should be added.
 */
@Override
public void addRuleInstances(Digester digester) {

    digester.addRule(prefix + "user", new MemoryUserRule());

}
 
开发者ID:liaokailin,项目名称:tomcat7,代码行数:16,代码来源:MemoryRuleSet.java

示例15: addRuleInstances

import org.apache.tomcat.util.digester.Digester; //导入方法依赖的package包/类
/**
 * <p>
 * Add the set of Rule instances defined in this RuleSet to the specified
 * <code>Digester</code> instance, associating them with our namespace URI
 * (if any). This method should only be called by a Digester instance.
 * </p>
 *
 * @param digester
 *            Digester instance to which the new Rule instances should be
 *            added.
 */
@Override
public void addRuleInstances(Digester digester) {

	digester.addRule(prefix + "user", new MemoryUserRule());

}
 
开发者ID:how2j,项目名称:lazycat,代码行数:18,代码来源:MemoryRuleSet.java


注:本文中的org.apache.tomcat.util.digester.Digester.addRule方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。