/**
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);
}
java类org.apache.log4j.spi.TriggeringEventEvaluator的实例源码
SMTPAppender.java 文件源码
项目:cacheonix-core
阅读 28
收藏 0
点赞 0
评论 0
SMTPAppender.java 文件源码
项目:cacheonix-core
阅读 23
收藏 0
点赞 0
评论 0
/**
* 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;
}
SMTPAppender.java 文件源码
项目:cacheonix-core
阅读 23
收藏 0
点赞 0
评论 0
/** {@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;
}
SMTPAppenderTest.java 文件源码
项目:cacheonix-core
阅读 25
收藏 0
点赞 0
评论 0
/**
* 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);
}
EmailDailyRollingFileAppender.java 文件源码
项目:log4j-collector
阅读 27
收藏 0
点赞 0
评论 0
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;
}
EmailAppender.java 文件源码
项目:log4j-collector
阅读 26
收藏 0
点赞 0
评论 0
@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;
}
SMTPAppender.java 文件源码
项目:daq-eclipse
阅读 24
收藏 0
点赞 0
评论 0
/**
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);
}
SMTPAppender.java 文件源码
项目:daq-eclipse
阅读 25
收藏 0
点赞 0
评论 0
/**
* 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;
}
SMTPAppender.java 文件源码
项目:daq-eclipse
阅读 25
收藏 0
点赞 0
评论 0
/** {@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;
}
SMTPAppender.java 文件源码
项目:nabs
阅读 22
收藏 0
点赞 0
评论 0
/**
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);
}
SMTPAppender.java 文件源码
项目:au-log4j
阅读 35
收藏 0
点赞 0
评论 0
/**
* 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);
}
SMTPAppender.java 文件源码
项目:au-log4j
阅读 24
收藏 0
点赞 0
评论 0
/**
* 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;
}
SMTPAppender.java 文件源码
项目:cacheonix-core
阅读 31
收藏 0
点赞 0
评论 0
/**
Use <code>evaluator</code> passed as parameter as the {@link
TriggeringEventEvaluator} for this SMTPAppender. */
public
SMTPAppender(TriggeringEventEvaluator evaluator) {
this.evaluator = evaluator;
}
EmailDailyRollingFileAppender.java 文件源码
项目:log4j-collector
阅读 20
收藏 0
点赞 0
评论 0
public void setEvaluator(TriggeringEventEvaluator evaluator) {
this.evaluator = evaluator;
}
EmailAppender.java 文件源码
项目:log4j-collector
阅读 21
收藏 0
点赞 0
评论 0
public TriggeringEventEvaluator getEvaluator() {
return evaluator;
}
EmailAppender.java 文件源码
项目:log4j-collector
阅读 26
收藏 0
点赞 0
评论 0
public void setEvaluator(TriggeringEventEvaluator evaluator) {
this.evaluator = evaluator;
}
SMTPAppender.java 文件源码
项目:daq-eclipse
阅读 33
收藏 0
点赞 0
评论 0
/**
Use <code>evaluator</code> passed as parameter as the {@link
TriggeringEventEvaluator} for this SMTPAppender. */
public
SMTPAppender(TriggeringEventEvaluator evaluator) {
this.evaluator = evaluator;
}
IMAppender.java 文件源码
项目:olat
阅读 23
收藏 0
点赞 0
评论 0
public IMAppender(final TriggeringEventEvaluator evaluator) {
this.evaluator = evaluator;
}
IMAppender.java 文件源码
项目:olat
阅读 22
收藏 0
点赞 0
评论 0
public IMAppender(final TriggeringEventEvaluator evaluator) {
this.evaluator = evaluator;
}
SMTPAppender.java 文件源码
项目:nabs
阅读 26
收藏 0
点赞 0
评论 0
/**
Use <code>evaluator</code> passed as parameter as the {@link
TriggeringEventEvaluator} for this SMTPAppender. */
public
SMTPAppender(TriggeringEventEvaluator evaluator) {
this.evaluator = evaluator;
}
SMTPAppender.java 文件源码
项目:cacheonix-core
阅读 22
收藏 0
点赞 0
评论 0
/**
* Get triggering evaluator.
* @return triggering event evaluator.
* @since 1.2.15
*/
public final TriggeringEventEvaluator getEvaluator() {
return evaluator;
}
SMTPAppender.java 文件源码
项目:daq-eclipse
阅读 21
收藏 0
点赞 0
评论 0
/**
* Get triggering evaluator.
* @return triggering event evaluator.
* @since 1.2.15
*/
public final TriggeringEventEvaluator getEvaluator() {
return evaluator;
}
IMAppender.java 文件源码
项目:olat
阅读 24
收藏 0
点赞 0
评论 0
/**
* 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);
}
IMAppender.java 文件源码
项目:olat
阅读 22
收藏 0
点赞 0
评论 0
/**
* 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);
}
SMTPAppender.java 文件源码
项目:au-log4j
阅读 25
收藏 0
点赞 0
评论 0
/**
* Get triggering evaluator.
*
* @return triggering event evaluator.
*
* @since 1.2.15
*/
public final TriggeringEventEvaluator getEvaluator()
{
return evaluator;
}