org.productivity.java.syslog4j.impl.pool
Class AbstractSyslogPoolFactory
java.lang.Object
org.apache.commons.pool.BasePoolableObjectFactory
org.productivity.java.syslog4j.impl.pool.AbstractSyslogPoolFactory
- All Implemented Interfaces:
- org.apache.commons.pool.PoolableObjectFactory
- Direct Known Subclasses:
- GenericSyslogPoolFactory
public abstract class AbstractSyslogPoolFactory
- extends org.apache.commons.pool.BasePoolableObjectFactory
AbstractSyslogPoolFactory is an abstract implementation of the Apache Commons Pool
BasePoolableObjectFactory.
Syslog4j is licensed under the Lesser GNU Public License v2.1. A copy
of the LGPL license is available in the META-INF folder in all
distributions of Syslog4j and in the base directory of the "doc" ZIP.
- Version:
- $Id: AbstractSyslogPoolFactory.java,v 1.5 2008/12/10 04:15:11 cvs Exp $
- Author:
- <syslog4j@productivity.org>
- See Also:
GenericSyslogPoolFactory
Methods inherited from class org.apache.commons.pool.BasePoolableObjectFactory |
activateObject, passivateObject, validateObject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
syslog
protected AbstractSyslog syslog
syslogConfig
protected AbstractSyslogConfigIF syslogConfig
pool
protected org.apache.commons.pool.ObjectPool pool
AbstractSyslogPoolFactory
public AbstractSyslogPoolFactory()
initialize
public void initialize(AbstractSyslog abstractSyslog)
throws SyslogRuntimeException
- Throws:
SyslogRuntimeException
makeObject
public java.lang.Object makeObject()
throws java.lang.Exception
- Specified by:
makeObject
in interface org.apache.commons.pool.PoolableObjectFactory
- Specified by:
makeObject
in class org.apache.commons.pool.BasePoolableObjectFactory
- Throws:
java.lang.Exception
destroyObject
public void destroyObject(java.lang.Object obj)
throws java.lang.Exception
- Specified by:
destroyObject
in interface org.apache.commons.pool.PoolableObjectFactory
- Overrides:
destroyObject
in class org.apache.commons.pool.BasePoolableObjectFactory
- Throws:
java.lang.Exception
createPool
public abstract org.apache.commons.pool.ObjectPool createPool()
throws SyslogRuntimeException
- Throws:
SyslogRuntimeException
borrowSyslogWriter
public AbstractSyslogWriter borrowSyslogWriter()
throws java.lang.Exception
- Throws:
java.lang.Exception
returnSyslogWriter
public void returnSyslogWriter(AbstractSyslogWriter syslogWriter)
throws java.lang.Exception
- Throws:
java.lang.Exception
clear
public void clear()
throws java.lang.Exception
- Throws:
java.lang.Exception
close
public void close()
throws java.lang.Exception
- Throws:
java.lang.Exception