Package org.apache.log4j.spi

Examples of org.apache.log4j.spi.OptionHandler.activateOptions()


    ReflectionException {

    if(operationName.equals("activateOptions") &&
                     appender instanceof OptionHandler) {
      OptionHandler oh = (OptionHandler) appender;
      oh.activateOptions();
      return "Options activated.";
    } else if (operationName.equals("setLayout")) {
      Layout layout = (Layout) OptionConverter.instantiateByClassName((String)
                      params[0],
                      Layout.class,
View Full Code Here


    ReflectionException {

    if(operationName.equals("activateOptions") &&
                     layout instanceof OptionHandler) {
      OptionHandler oh = (OptionHandler) layout;
      oh.activateOptions();
      return "Options activated.";
    }
    return null;
  }
View Full Code Here

    ReflectionException {
  
    if(operationName.equals("activateOptions") &&
                     layout instanceof OptionHandler) {
      OptionHandler oh = (OptionHandler) layout;
      oh.activateOptions();
      return "Options activated.";
    }
    return null;
  }
View Full Code Here

    ReflectionException {
  
    if(operationName.equals("activateOptions") &&
                     appender instanceof OptionHandler) {
      OptionHandler oh = (OptionHandler) appender;
      oh.activateOptions();
      return "Options activated.";
    } else if (operationName.equals("setLayout")) {
      Layout layout = (Layout) OptionConverter.instantiateByClassName((String)
                      params[0],
                      Layout.class,
View Full Code Here

      if ("rollingPolicy".equals(nodeName)) {
          OptionHandler rollingPolicy =
                  org.apache.log4j.extras.DOMConfigurator.parseElement(
                          element, props, RollingPolicy.class);
          if (rollingPolicy != null) {
              rollingPolicy.activateOptions();
              this.setRollingPolicy((RollingPolicy) rollingPolicy);
          }
          return true;
      }
      if ("triggeringPolicy".equals(nodeName)) {
View Full Code Here

      if ("triggeringPolicy".equals(nodeName)) {
          OptionHandler triggerPolicy =
                  org.apache.log4j.extras.DOMConfigurator.parseElement(
                          element, props, TriggeringPolicy.class);
          if (triggerPolicy != null) {
              triggerPolicy.activateOptions();
              this.setTriggeringPolicy((TriggeringPolicy) triggerPolicy);
          }
          return true;
      }
      return false;
View Full Code Here

      if ("filter".equals(nodeName)) {
          OptionHandler filter =
                  org.apache.log4j.extras.DOMConfigurator.parseElement(
                          element, props, Filter.class);
          if (filter instanceof Filter) {
              filter.activateOptions();
              this.addFilter((Filter) filter);
          }
          return true;
      }
      return false;
View Full Code Here

    parsePriority(currentElement, cat, isRoot)
  } else if(tagName.equals(PARAM_TAG)) {
    if(cat instanceof OptionHandler) {
      OptionHandler oh = (OptionHandler) cat;
      parseParameters(currentElement, oh);
      oh.activateOptions();
    }
  }
      }
    }
  }
View Full Code Here

    ReflectionException {

    if(operationName.equals("activateOptions") &&
                     appender instanceof OptionHandler) {
      OptionHandler oh = (OptionHandler) appender;
      oh.activateOptions();
      return "Options activated.";
    } else if (operationName.equals("setLayout")) {
      Layout layout = (Layout) OptionConverter.instantiateByClassName((String)
                      params[0],
                      Layout.class,
View Full Code Here

    ReflectionException {

    if(operationName.equals("activateOptions") &&
                     layout instanceof OptionHandler) {
      OptionHandler oh = layout;
      oh.activateOptions();
      return "Options activated.";
    }
    return null;
  }
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.