com.rubecula.darwin.domain.helper
Class LogFactoryNoOp

java.lang.Object
  extended by org.apache.commons.logging.LogFactory
      extended by org.apache.commons.logging.impl.LogFactoryImpl
          extended by com.rubecula.darwin.domain.helper.LogFactoryNoOp

public class LogFactoryNoOp
extends org.apache.commons.logging.impl.LogFactoryImpl

This class is necessary to allow the system to run as a (remote) Applet. In order to run as an insecure applet (i.e. one where no special efforts are made to deal with security issues while the applet is hosted on a remote site) you must return the NoOpLog logger. In order to run as a secure applet with logging (i.e. when which is running locally or where the security manager issues are resolved, for example by signing the applet), you must return LogFactory.getLog(clazz).

Author:
Robin Hillyard

Field Summary
 
Fields inherited from class org.apache.commons.logging.impl.LogFactoryImpl
ALLOW_FLAWED_CONTEXT_PROPERTY, ALLOW_FLAWED_DISCOVERY_PROPERTY, ALLOW_FLAWED_HIERARCHY_PROPERTY, attributes, instances, LOG_PROPERTY, LOG_PROPERTY_OLD, logConstructor, logConstructorSignature, logMethod, logMethodSignature
 
Fields inherited from class org.apache.commons.logging.LogFactory
DIAGNOSTICS_DEST_PROPERTY, factories, FACTORY_DEFAULT, FACTORY_PROPERTIES, FACTORY_PROPERTY, HASHTABLE_IMPLEMENTATION_PROPERTY, nullClassLoaderFactory, PRIORITY_KEY, SERVICE_ID, TCCL_KEY
 
Constructor Summary
LogFactoryNoOp()
          Public constructor.
 
Method Summary
 org.apache.commons.logging.Log getInstance(java.lang.Class clazz)
           
 org.apache.commons.logging.Log getInstance(java.lang.String name)
           
 
Methods inherited from class org.apache.commons.logging.impl.LogFactoryImpl
getAttribute, getAttributeNames, getClassLoader, getContextClassLoader, getLogClassName, getLogConstructor, isDiagnosticsEnabled, isJdk13LumberjackAvailable, isJdk14Available, isLog4JAvailable, logDiagnostic, newInstance, release, removeAttribute, setAttribute
 
Methods inherited from class org.apache.commons.logging.LogFactory
createFactory, directGetContextClassLoader, getFactory, getLog, getLog, logRawDiagnostic, newFactory, newFactory, objectId, release, releaseAll
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogFactoryNoOp

public LogFactoryNoOp()
Public constructor.

Method Detail

getInstance

public org.apache.commons.logging.Log getInstance(java.lang.Class clazz)
                                           throws org.apache.commons.logging.LogConfigurationException
Overrides:
getInstance in class org.apache.commons.logging.impl.LogFactoryImpl
Throws:
org.apache.commons.logging.LogConfigurationException
See Also:
LogFactoryImpl.getInstance(java.lang.Class)

getInstance

public org.apache.commons.logging.Log getInstance(java.lang.String name)
                                           throws org.apache.commons.logging.LogConfigurationException
Overrides:
getInstance in class org.apache.commons.logging.impl.LogFactoryImpl
Returns:
a NoOpLog logger.
Throws:
org.apache.commons.logging.LogConfigurationException
See Also:
LogFactoryImpl.getInstance(java.lang.String)


Copyright © 2010 Rubecula Software, LLC. All Rights Reserved.