类org.apache.log4j.spi.TriggeringEventEvaluator源码实例Demo

下面列出了怎么用org.apache.log4j.spi.TriggeringEventEvaluator的API类实例代码及写法,或者点击链接到github查看源代码。

源代码1 项目: cacheonix-core   文件: SMTPAppender.java
/**
   The <b>EvaluatorClass</b> option takes a string value
   representing the name of the class implementing the {@link
   TriggeringEventEvaluator} interface. A corresponding object will
   be instantiated and assigned as the triggering event evaluator
   for the SMTPAppender.
 */
public
void setEvaluatorClass(String value) {
    evaluator = (TriggeringEventEvaluator)
              OptionConverter.instantiateByClassName(value,
			   TriggeringEventEvaluator.class,
				       evaluator);
}
 
源代码2 项目: cacheonix-core   文件: SMTPAppender.java
/**
   * Sets triggering evaluator.
   * @param trigger triggering event evaluator.
   * @since 1.2.15
   */
public final void setEvaluator(final TriggeringEventEvaluator trigger) {
    if (trigger == null) {
        throw new NullPointerException("trigger");
    }
    this.evaluator = trigger;
}
 
 类所在包
 同包方法