private static int size(final String property, final int defaultValue) { return PropertiesUtil.getProperties().getIntegerProperty(property, defaultValue); }
/** * Initializes static variables based on system properties. Normally called when this class is initialized by the VM * and when Log4j is reconfigured. */ static void init() { final PropertiesUtil properties = PropertiesUtil.getProperties(); initialCapacity = properties.getIntegerProperty(PROPERTY_NAME_INITIAL_CAPACITY, DEFAULT_INITIAL_CAPACITY); inheritableMap = properties.getBooleanProperty(INHERITABLE_MAP); }
/** * Initializes static variables based on system properties. Normally called when this class is initialized by the VM * and when Log4j is reconfigured. */ static void init() { final PropertiesUtil properties = PropertiesUtil.getProperties(); initialCapacity = properties.getIntegerProperty(PROPERTY_NAME_INITIAL_CAPACITY, DEFAULT_INITIAL_CAPACITY); inheritableMap = properties.getBooleanProperty(INHERITABLE_MAP); }
private static int size(final String property, final int defaultValue) { return PropertiesUtil.getProperties().getIntegerProperty(property, defaultValue); }
private static int size(final String property, final int defaultValue) { return PropertiesUtil.getProperties().getIntegerProperty(property, defaultValue); }
private static int size(final String property, final int defaultValue) { return PropertiesUtil.getProperties().getIntegerProperty(property, defaultValue); }
/** * Returns an implementation of the {@code StringMap} used to back this thread context map. * <p> * Subclasses may override. * </p> * @return an implementation of the {@code StringMap} used to back this thread context map */ protected StringMap createStringMap() { return new SortedArrayStringMap(PropertiesUtil.getProperties().getIntegerProperty( PROPERTY_NAME_INITIAL_CAPACITY, DEFAULT_INITIAL_CAPACITY)); }
/** * Returns an implementation of the {@code StringMap} used to back this thread context map. * <p> * Subclasses may override. * </p> * @return an implementation of the {@code StringMap} used to back this thread context map */ protected StringMap createStringMap() { return new SortedArrayStringMap(PropertiesUtil.getProperties().getIntegerProperty( PROPERTY_NAME_INITIAL_CAPACITY, DEFAULT_INITIAL_CAPACITY)); }