Methods Summary |
---|
public boolean | equals(java.lang.Object o)It is assumed that this method will never be called.
The prefix value is not used for the equals method.
if (o == null) {
return false;
}
if (o == this) {
return true;
}
if (o instanceof Properties == false) {
return false;
}
assert false;
return super.equals(o);
|
static final java.lang.Class | findClass(java.lang.String name)This code is modifed from the LogManager, which explictly states
searching the system class loader first, then the context class loader.
There is resistance (compatiblity) to change this behavior to simply
searching the context class loader.
ClassLoader[] loaders = getClassLoaders();
Class clazz;
if (loaders[0] != null) {
try {
clazz = Class.forName(name, false, loaders[0]);
} catch (ClassNotFoundException tryContext) {
clazz = tryLoad(name, loaders[1]);
}
} else {
clazz = tryLoad(name, loaders[1]);
}
return clazz;
|
private static java.lang.ClassLoader[] | getClassLoaders()
return (ClassLoader[]) AccessController.doPrivileged(new PrivilegedAction() {
public Object run() {
final ClassLoader[] loaders = new ClassLoader[2];
try {
loaders[0] = ClassLoader.getSystemClassLoader();
} catch (SecurityException ignore) {
loaders[0] = null;
}
try {
loaders[1] = Thread.currentThread().getContextClassLoader();
} catch (SecurityException ignore) {
loaders[1] = null;
}
return loaders;
}
});
|
public java.lang.String | getProperty(java.lang.String key)Performs the super action, then searches the log manager
by the prefix property, and then by the key itself.
String value = super.getProperty(key);
if (value == null && key.length() > 0) {
value = manager.getProperty(prefix + '." + key);
if (value == null) {
value = manager.getProperty(key);
}
}
return value;
|
public int | hashCode()It is assumed that this method will never be called. See equals.
assert false;
return super.hashCode();
|
public java.util.Enumeration | propertyNames()It is assumed that this method will never be called.
No way to get the property names from LogManager.
assert false;
return super.propertyNames();
|
private static java.lang.Class | tryLoad(java.lang.String name, java.lang.ClassLoader l)
if (l != null) {
return Class.forName(name, false, l);
} else {
return Class.forName(name);
}
|
private synchronized java.lang.Object | writeReplace()It is assumed that this method will never be called.
assert false;
final Properties out = new Properties(defaults);
if (!super.isEmpty()) { //should always be empty.
out.putAll(this);
}
return out;
|