|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectLogFactory
com.ibm.portal.struts.logging.StrutsLogFactory
public class StrutsLogFactory
Struts Logging Factory
| Constructor Summary | |
|---|---|
StrutsLogFactory()
StrutsLoggingFactory ctr. |
|
| Method Summary | |
|---|---|
java.lang.Object |
getAttribute(java.lang.String name)
Return the configuration attribute with the specified name (if any), or null if there is no such attribute. |
java.lang.String[] |
getAttributeNames()
Return an array containing the names of all currently defined configuration attributes. |
Log |
getInstance(java.lang.Class clazz)
Convenience method to derive a name from the specified class and call getInstance(String) with it. |
Log |
getInstance(java.lang.String name)
Construct (if necessary) and return a Log instance,
using the factory's current set of configuration attributes. |
void |
release()
Release any internal references to previously created Log
instances returned by this factory. |
void |
removeAttribute(java.lang.String name)
Remove any configuration attribute associated with the specified name. |
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Set the configuration attribute with the specified name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StrutsLogFactory()
| Method Detail |
|---|
public java.lang.Object getAttribute(java.lang.String name)
null if there is no such attribute.
name - Name of the attribute to returnpublic java.lang.String[] getAttributeNames()
public Log getInstance(java.lang.Class clazz)
throws LogConfigurationException
getInstance(String) with it.
clazz - Class for which a suitable Log name will be derived
LogConfigurationException - if a suitable Log
instance cannot be returned
public Log getInstance(java.lang.String name)
throws LogConfigurationException
Construct (if necessary) and return a Log instance,
using the factory's current set of configuration attributes.
name - Logical name of the Log instance to be
returned
LogConfigurationException - if a suitable Log
instance cannot be returnedpublic void release()
Log
instances returned by this factory. This is useful environments
like servlet containers, which implement application reloading by
throwing away a ClassLoader. Dangling references to objects in that
class loader would prevent garbage collection.
public void removeAttribute(java.lang.String name)
name - Name of the attribute to remove
public void setAttribute(java.lang.String name,
java.lang.Object value)
null value is equivalent to calling
removeAttribute(name).
name - Name of the attribute to setvalue - Value of the attribute to set, or null
to remove any setting for this attribute
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||