|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.adventnet.afp.log.AbstractLogWriter
This is the abstract class that implements the LogWriter. This class provides methods for the listening mechanism. Only the registered listeners will be notified when there is any change in the properties of the LogWriter.It gives implementation for important methods provided by the LogWriter interface.
| Field Summary | |
protected java.util.Vector |
listeners
Vector containing property change listeners |
| Constructor Summary | |
AbstractLogWriter()
Creates a new AbstractLogWriter instance. |
|
| Method Summary | |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Method for adding PropertyChangeListener to this LogWriter instance. |
java.lang.String |
getInstanceName()
This method will return the log writer instance . |
void |
init(LogWriterProperties prop)
For initializing implementation class with required properties. |
boolean |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Used to remove the registered PropertyChangeListener. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.adventnet.afp.log.LogWriter |
close, err, flush, out |
| Field Detail |
protected java.util.Vector listeners
| Constructor Detail |
public AbstractLogWriter()
AbstractLogWriter instance.
| Method Detail |
public void init(LogWriterProperties prop)
throws LogException
init in interface LogWriterprop - Properties containing information read from the logging configuration file.
LogException - if an error occurs during initializationpublic java.lang.String getInstanceName()
getInstanceName in interface LogWriterpublic void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
addPropertyChangeListener in interface LogWriterlistener - PropertyChangeListener to be addedpublic boolean removePropertyChangeListener(java.beans.PropertyChangeListener listener)
removePropertyChangeListener in interface LogWriterlistener - reference of PropertyChangeListener to be removed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||