Protection for applet mode.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2318 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -160,7 +160,13 @@ public abstract class Logger
|
|||||||
*/
|
*/
|
||||||
protected static Factory createConfiguredFactory ()
|
protected static Factory createConfiguredFactory ()
|
||||||
{
|
{
|
||||||
String implClass = System.getProperty("com.samskivert.util.Log");
|
String implClass;
|
||||||
|
try {
|
||||||
|
implClass = System.getProperty("com.samskivert.util.Log");
|
||||||
|
} catch (SecurityException se) {
|
||||||
|
// in a sandbox
|
||||||
|
return null;
|
||||||
|
}
|
||||||
if (!StringUtil.isBlank(implClass)) {
|
if (!StringUtil.isBlank(implClass)) {
|
||||||
try {
|
try {
|
||||||
return (Factory)Class.forName(implClass).newInstance();
|
return (Factory)Class.forName(implClass).newInstance();
|
||||||
|
|||||||
Reference in New Issue
Block a user