- java.lang.Object
-
- ch.qos.logback.core.joran.util.ConfigurationWatchListUtil
-
public class ConfigurationWatchListUtil extends Object
A thin layer on top ofConfigurationWatchList.- Author:
- Ceki Gülcü
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddToWatchList(Context context, URL url)static voidaddToWatchList(Context context, URL url, boolean createCWL)static ConfigurationWatchListgetConfigurationWatchList(Context context)static URLgetMainWatchURL(Context context)static voidregisterConfigurationWatchList(Context context, ConfigurationWatchList cwl)static ConfigurationWatchListregisterNewConfigurationWatchListWithContext(Context context)static voidsetMainWatchURL(Context context, URL url)Sets the main configuration watch URL in the given context's configuration watch list.static booleanwatchPredicateFulfilled(Context context)Returns true if there are watchable files, false otherwise.
-
-
-
Method Detail
-
registerConfigurationWatchList
public static void registerConfigurationWatchList(Context context, ConfigurationWatchList cwl)
-
setMainWatchURL
public static void setMainWatchURL(Context context, URL url)
Sets the main configuration watch URL in the given context's configuration watch list. If the provided URL is null, the method exits without making any changes. If the configuration watch list is not initialized, an error is added to the context's status. Otherwise, the configuration watch list is cleared and the given URL is set as the main URL.- Parameters:
context- the context in which the configuration watch list is managedurl- the main configuration watch URL to be set; if null, no action is taken
-
watchPredicateFulfilled
public static boolean watchPredicateFulfilled(Context context)
Returns true if there are watchable files, false otherwise.- Returns:
- true if there are watchable files, false otherwise.
- Since:
- 1.5.8
-
getMainWatchURL
public static URL getMainWatchURL(Context context)
-
addToWatchList
public static void addToWatchList(Context context, URL url)
-
addToWatchList
public static void addToWatchList(Context context, URL url, boolean createCWL)
-
registerNewConfigurationWatchListWithContext
public static ConfigurationWatchList registerNewConfigurationWatchListWithContext(Context context)
-
getConfigurationWatchList
public static ConfigurationWatchList getConfigurationWatchList(Context context)
-
-