|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.etools.logging.util.AbstractMessageLoggerFactory
Constructor Summary | |
---|---|
AbstractMessageLoggerFactory()
|
Method Summary | |
---|---|
void |
closeAllFileHandles()
Closes the open file handles owned by loggers in the Factory. |
AbstractMessageLogger |
createLogger(java.lang.String name)
Deprecated. This method is not the correct way to get or create a new logger. The correct way to get or create a new logger is by calling getLogger(String loggerName). |
protected abstract AbstractMessageLogger |
createProperLogger()
This method must be overridden by the subclass to provide the proper instance of logger to be created by this factory. |
void |
destroyLogger(java.lang.String name)
Destroys the logger instance with the specified name. |
void |
destroyLogger(java.lang.String name,
java.lang.String version)
Destroys the logger instance with the specified name and version. |
AbstractMessageLogger |
getLogger(java.lang.String name)
Returns the logger instance with the specified name. |
AbstractMessageLogger |
getLogger(java.lang.String name,
Plugin plugin)
Returns the logger instance with the specified name and if a parameter Plugin is passed, sets the Plugin for the logger. |
AbstractMessageLogger |
getLogger(java.lang.String name,
java.lang.String version,
Plugin plugin)
Returns the logger instance with the specified name and version and if a parameter Plugin is passed, sets the Plugin for the logger. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AbstractMessageLoggerFactory()
Method Detail |
protected abstract AbstractMessageLogger createProperLogger()
public final void closeAllFileHandles()
public final void destroyLogger(java.lang.String name) throws java.lang.IllegalArgumentException
name
- the name of the logger to be destroyed
java.lang.IllegalArgumentException
- Attempting to destroy a logger with an illegal namepublic final void destroyLogger(java.lang.String name, java.lang.String version) throws java.lang.IllegalArgumentException
name
- the name of the logger to be destroyedversion
- the version of the logger to be destroyed
java.lang.IllegalArgumentException
- Attempting to destroy a logger with an illegal namepublic final AbstractMessageLogger getLogger(java.lang.String name, Plugin plugin) throws java.lang.IllegalArgumentException
name
- the name of the logger to be retrieved or createdplugin
- the Plugin that this logger belongs, if running within a plugin environment
java.lang.IllegalArgumentException
- Attempting to get a logger with an illegal namepublic final AbstractMessageLogger getLogger(java.lang.String name, java.lang.String version, Plugin plugin) throws java.lang.IllegalArgumentException
name
- the name of the logger to be retrieved or createdversion
- the version of the logger to be retrieved or createdplugin
- the Plugin that this logger belongs, if running within a plugin environment
java.lang.IllegalArgumentException
- Attempting to get a logger with an illegal namepublic final AbstractMessageLogger getLogger(java.lang.String name) throws java.lang.IllegalArgumentException
name
- the name of the logger to be retrieved or created
java.lang.IllegalArgumentException
- Attempting to retrieve/create a logger with an illegal namepublic final AbstractMessageLogger createLogger(java.lang.String name) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |