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

项目: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);
}
项目: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;
}
项目:cacheonix-core    文件:SMTPAppender.java   
/** {@inheritDoc} */
public boolean parseUnrecognizedElement(final Element element,
                                        final Properties props) throws Exception {
    if ("triggeringPolicy".equals(element.getNodeName())) {
        Object triggerPolicy =
                org.apache.log4j.xml.DOMConfigurator.parseElement(
                        element, props, TriggeringEventEvaluator.class);
        if (triggerPolicy instanceof TriggeringEventEvaluator) {
            setEvaluator((TriggeringEventEvaluator) triggerPolicy);
        }
        return true;
    }

    return false;
}
项目:cacheonix-core    文件:SMTPAppenderTest.java   
/**
   * Tests that triggeringPolicy element will set evaluator.
   */
public void testTrigger() {
    DOMConfigurator.configure("input/xml/smtpAppender1.xml");
    SMTPAppender appender = (SMTPAppender) Logger.getRootLogger().getAppender("A1");
    TriggeringEventEvaluator evaluator = appender.getEvaluator();
    assertTrue(evaluator instanceof MockTriggeringEventEvaluator);
}
项目:log4j-collector    文件:EmailDailyRollingFileAppender.java   
public boolean parseUnrecognizedElement(final Element element,
                                        final Properties props) throws Exception {
    if ("triggeringPolicy".equals(element.getNodeName())) {
        Object triggerPolicy = org.apache.log4j.xml.DOMConfigurator.parseElement(
                        element, props, TriggeringEventEvaluator.class);
        if (triggerPolicy instanceof TriggeringEventEvaluator) {
            setEvaluator((TriggeringEventEvaluator) triggerPolicy);
        }
        return true;
    }

    return false;
}
项目:log4j-collector    文件:EmailAppender.java   
@Override
public boolean parseUnrecognizedElement(Element element, Properties props) throws Exception {
    if ("triggeringPolicy".equals(element.getNodeName())) {
        Object triggerPolicy = org.apache.log4j.xml.DOMConfigurator.parseElement(
                element, props, TriggeringEventEvaluator.class);
        if (triggerPolicy instanceof TriggeringEventEvaluator) {
            setEvaluator((TriggeringEventEvaluator) triggerPolicy);
        }
        return true;
    }
    return false;
}
项目:daq-eclipse    文件: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);
}
项目:daq-eclipse    文件: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;
}
项目:daq-eclipse    文件:SMTPAppender.java   
/** {@inheritDoc}
 * @since 1.2.15 
*/
public boolean parseUnrecognizedElement(final Element element,
                                        final Properties props) throws Exception {
    if ("triggeringPolicy".equals(element.getNodeName())) {
        Object triggerPolicy =
                org.apache.log4j.xml.DOMConfigurator.parseElement(
                        element, props, TriggeringEventEvaluator.class);
        if (triggerPolicy instanceof TriggeringEventEvaluator) {
            setEvaluator((TriggeringEventEvaluator) triggerPolicy);
        }
        return true;
    }

    return false;
}
项目:nabs    文件: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);
}
项目:au-log4j    文件: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(final String value)
{
    evaluator =
        (TriggeringEventEvaluator) OptionConverter.instantiateByClassName(
            value, TriggeringEventEvaluator.class, evaluator);
}
项目:au-log4j    文件: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;
}
项目:cacheonix-core    文件:SMTPAppender.java   
/**
   Use <code>evaluator</code> passed as parameter as the {@link
   TriggeringEventEvaluator} for this SMTPAppender.  */
public
SMTPAppender(TriggeringEventEvaluator evaluator) {
  this.evaluator = evaluator;
}
项目:log4j-collector    文件:EmailDailyRollingFileAppender.java   
public void setEvaluator(TriggeringEventEvaluator evaluator) {
    this.evaluator = evaluator;
}
项目:log4j-collector    文件:EmailAppender.java   
public TriggeringEventEvaluator getEvaluator() {
    return evaluator;
}
项目:log4j-collector    文件:EmailAppender.java   
public void setEvaluator(TriggeringEventEvaluator evaluator) {
    this.evaluator = evaluator;
}
项目:daq-eclipse    文件:SMTPAppender.java   
/**
   Use <code>evaluator</code> passed as parameter as the {@link
   TriggeringEventEvaluator} for this SMTPAppender.  */
public
SMTPAppender(TriggeringEventEvaluator evaluator) {
  this.evaluator = evaluator;
}
项目:olat    文件:IMAppender.java   
public IMAppender(final TriggeringEventEvaluator evaluator) {
    this.evaluator = evaluator;
}
项目:olat    文件:IMAppender.java   
public IMAppender(final TriggeringEventEvaluator evaluator) {
    this.evaluator = evaluator;
}
项目:nabs    文件:SMTPAppender.java   
/**
   Use <code>evaluator</code> passed as parameter as the {@link
   TriggeringEventEvaluator} for this SMTPAppender.  */
public
SMTPAppender(TriggeringEventEvaluator evaluator) {
  this.evaluator = evaluator;
}
项目:cacheonix-core    文件:SMTPAppender.java   
/**
   * Get triggering evaluator.
   * @return triggering event evaluator.
   * @since 1.2.15
   */
public final TriggeringEventEvaluator getEvaluator() {
    return evaluator;
}
项目:daq-eclipse    文件:SMTPAppender.java   
/**
   * Get triggering evaluator.
   * @return triggering event evaluator.
   * @since 1.2.15
   */
public final TriggeringEventEvaluator getEvaluator() {
    return evaluator;
}
项目:olat    文件:IMAppender.java   
/**
 * The <b>EvaluatorClass </b> option takes a string value representing the name of the class implementing the {@linkTriggeringEventEvaluator} interface. A
 * corresponding object will be instantiated and assigned as the triggering event evaluator for the SMTPAppender.
 */
public void setEvaluatorClass(final String value) {
    evaluator = (TriggeringEventEvaluator) OptionConverter.instantiateByClassName(value, TriggeringEventEvaluator.class, evaluator);
}
项目:olat    文件:IMAppender.java   
/**
 * The <b>EvaluatorClass </b> option takes a string value representing the name of the class implementing the {@linkTriggeringEventEvaluator} interface. A
 * corresponding object will be instantiated and assigned as the triggering event evaluator for the SMTPAppender.
 */
public void setEvaluatorClass(final String value) {
    evaluator = (TriggeringEventEvaluator) OptionConverter.instantiateByClassName(value, TriggeringEventEvaluator.class, evaluator);
}
项目:au-log4j    文件:SMTPAppender.java   
/**
 * Get triggering evaluator.
 *
 * @return triggering event evaluator.
 *
 * @since 1.2.15
 */
public final TriggeringEventEvaluator getEvaluator()
{
    return evaluator;
}