org.openqa.jetty.log
Class Factory

java.lang.Object
  extended by org.apache.commons.logging.LogFactory
      extended by org.openqa.jetty.log.Factory

public class Factory
extends org.apache.commons.logging.LogFactory

Commons Logging Factory for org.openqa.jetty.log Returns a static default log, unless an alternate Log implementation has been set as an attribute keyed by the classname or other name of the log. If the name of the attibute ends with '.*' it is assumed to be a name prefix match. Attributes with string values are treated as references to other attributes. This class needs to be configured in the META-INF/services directory (see build.xml for example) for automatic discovery. Or it can be configured with the system property: -Dorg.apache.commons.logging.LogFactory=org.openqa.jetty.log.Factory


Field Summary
 
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
Factory()
           
 
Method Summary
 java.lang.Object getAttribute(java.lang.String n)
           
 java.lang.String[] getAttributeNames()
           
 org.apache.commons.logging.Log getInstance(java.lang.Class c)
           
 org.apache.commons.logging.Log getInstance(java.lang.String name)
           
 void release()
           
 void removeAttribute(java.lang.String n)
           
 void setAttribute(java.lang.String n, java.lang.Object v)
           
 
Methods inherited from class org.apache.commons.logging.LogFactory
createFactory, directGetContextClassLoader, getClassLoader, getContextClassLoader, getFactory, getLog, getLog, isDiagnosticsEnabled, 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

Factory

public Factory()
Method Detail

getAttribute

public java.lang.Object getAttribute(java.lang.String n)
Specified by:
getAttribute in class org.apache.commons.logging.LogFactory

getAttributeNames

public java.lang.String[] getAttributeNames()
Specified by:
getAttributeNames in class org.apache.commons.logging.LogFactory

getInstance

public org.apache.commons.logging.Log getInstance(java.lang.Class c)
                                           throws org.apache.commons.logging.LogConfigurationException
Specified by:
getInstance in class org.apache.commons.logging.LogFactory
Throws:
org.apache.commons.logging.LogConfigurationException

getInstance

public org.apache.commons.logging.Log getInstance(java.lang.String name)
                                           throws org.apache.commons.logging.LogConfigurationException
Specified by:
getInstance in class org.apache.commons.logging.LogFactory
Throws:
org.apache.commons.logging.LogConfigurationException

release

public void release()
Specified by:
release in class org.apache.commons.logging.LogFactory

removeAttribute

public void removeAttribute(java.lang.String n)
Specified by:
removeAttribute in class org.apache.commons.logging.LogFactory

setAttribute

public void setAttribute(java.lang.String n,
                         java.lang.Object v)
Specified by:
setAttribute in class org.apache.commons.logging.LogFactory


Copyright © 2011. All Rights Reserved.