Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Logback: the reliable, generic, fast and flexible logging framework. Copyright (C) 1999-2011, QOS.ch. All rights reserved. This program and the accompanying materials are dual-licensed under either the terms of the Eclipse Public License v1.0 as published by the Eclipse Foundation or (per the licensee's choosing) under the terms of the GNU Lesser General Public License version 2.1 as published by the Free Software Foundation.
 
 package ch.qos.logback.core.joran.util;
 
 
 import java.net.URL;

Author(s):
Ceki Gücü
 
 public class ConfigurationWatchListUtil {
 
 
   private ConfigurationWatchListUtil() {
   }
 
   public static void setMainWatchURL(Context contextURL url) {
     if (cwl == null) {
       cwl = new ConfigurationWatchList();
       cwl.setContext(context);
       context.putObject(.cwl);
     } else {
       cwl.clear();
     }
     setConfigurationWatchListResetFlag(contexttrue);
     cwl.setMainURL(url);
   }
 
   public static URL getMainWatchURL(Context context) {
     if (cwl == null) {
       return null;
     } else {
       return cwl.getMainURL();
     }
   }
 
   public static void addToWatchList(Context contextURL url) {
     if (cwl == null) {
       addWarn(context"Null ConfigurationWatchList. Cannot add " + url);
     } else {
       addInfo(context"Adding [" + url + "] to configuration watch list.");
       cwl.addToWatchList(url);
     }
   }
 
   public static boolean wasConfigurationWatchListReset(Context context) {
     if (o == null)
       return false;
     else {
       return ((Booleano).booleanValue();
     }
   }
 
   public static void setConfigurationWatchListResetFlag(Context contextboolean val) {
   }
 
   public static ConfigurationWatchList getConfigurationWatchList(Context context) {
   }
 
   static void addStatus(Context contextStatus s) {
     if (context == null) {
       ..println("Null context in " + ConfigurationWatchList.class.getName());
       return;
     }
     StatusManager sm = context.getStatusManager();
     if (sm == nullreturn;
     sm.add(s);
   }
 
   static void addInfo(Context contextString msg) {
     addStatus(contextnew InfoStatus(msg));
   }
 
   static void addWarn(Context contextString msg) {
    addStatus(contextnew WarnStatus(msg));
  }
New to GrepCode? Check out our FAQ X