Package com.levigo.jadice.server.xml
Class XSLTransformerPool
- java.lang.Object
-
- com.levigo.jadice.server.core.util.ManagedObjectPool<com.levigo.jadice.server.xml.internal.XSLTransformerKey,com.levigo.jadice.server.xml.internal.XSLTransformer>
-
- com.levigo.jadice.server.xml.XSLTransformerPool
-
- All Implemented Interfaces:
SelfRegistering
,org.springframework.beans.factory.DisposableBean
,org.springframework.beans.factory.InitializingBean
,org.springframework.jmx.export.naming.SelfNaming
@ManagedResource(description="XSL Transformer Pool") public class XSLTransformerPool extends ManagedObjectPool<com.levigo.jadice.server.xml.internal.XSLTransformerKey,com.levigo.jadice.server.xml.internal.XSLTransformer>
-
-
Constructor Summary
Constructors Constructor Description XSLTransformerPool()
XSLTransformerPool(int maxActive, long maxWait, int maxIdle)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.levigo.jadice.server.xml.internal.XSLTransformer
doBorrowObject(com.levigo.jadice.server.xml.internal.XSLTransformerKey key)
protected void
doInvalidateObject(com.levigo.jadice.server.xml.internal.XSLTransformer transformer)
protected void
doReturnObject(com.levigo.jadice.server.xml.internal.XSLTransformer transformer)
protected org.jadice.util.log.Logger
getLogger()
protected String
getName()
protected org.apache.commons.pool.impl.GenericKeyedObjectPool
getPool()
-
Methods inherited from class com.levigo.jadice.server.core.util.ManagedObjectPool
afterPropertiesSet, borrowObject, clearOldest, clearPool, clearWaitingTimes, destroy, evictPool, getAvgWaitingTime, getMaxActive, getMaxIdle, getMinEvictableIdleTimeMillis, getMinIdle, getNumActive, getNumIdle, getNumInvalidated, getNumReturned, getObjectName, getRecentAvgWaitingTime, getRecentMaxWaitingTime, getRecentMinWaitingTime, getTimeBetweenEvictionRunsMillis, invalidateObject, returnObject, setMaxActive, setMaxIdle, setMinEvictableIdleTimeMillis, setMinIdle, setTimeBetweenEvictionRunsMillis
-
-
-
-
Constructor Detail
-
XSLTransformerPool
public XSLTransformerPool() throws IOException
- Throws:
IOException
-
XSLTransformerPool
public XSLTransformerPool(int maxActive, long maxWait, int maxIdle) throws IOException
- Throws:
IOException
-
-
Method Detail
-
doBorrowObject
protected com.levigo.jadice.server.xml.internal.XSLTransformer doBorrowObject(com.levigo.jadice.server.xml.internal.XSLTransformerKey key) throws Exception
- Specified by:
doBorrowObject
in classManagedObjectPool<com.levigo.jadice.server.xml.internal.XSLTransformerKey,com.levigo.jadice.server.xml.internal.XSLTransformer>
- Throws:
Exception
-
doReturnObject
protected void doReturnObject(com.levigo.jadice.server.xml.internal.XSLTransformer transformer) throws Exception
- Specified by:
doReturnObject
in classManagedObjectPool<com.levigo.jadice.server.xml.internal.XSLTransformerKey,com.levigo.jadice.server.xml.internal.XSLTransformer>
- Throws:
Exception
-
doInvalidateObject
protected void doInvalidateObject(com.levigo.jadice.server.xml.internal.XSLTransformer transformer) throws Exception
- Specified by:
doInvalidateObject
in classManagedObjectPool<com.levigo.jadice.server.xml.internal.XSLTransformerKey,com.levigo.jadice.server.xml.internal.XSLTransformer>
- Throws:
Exception
-
getName
protected String getName()
- Specified by:
getName
in classManagedObjectPool<com.levigo.jadice.server.xml.internal.XSLTransformerKey,com.levigo.jadice.server.xml.internal.XSLTransformer>
-
getLogger
protected org.jadice.util.log.Logger getLogger()
- Specified by:
getLogger
in classManagedObjectPool<com.levigo.jadice.server.xml.internal.XSLTransformerKey,com.levigo.jadice.server.xml.internal.XSLTransformer>
-
getPool
protected org.apache.commons.pool.impl.GenericKeyedObjectPool getPool()
- Specified by:
getPool
in classManagedObjectPool<com.levigo.jadice.server.xml.internal.XSLTransformerKey,com.levigo.jadice.server.xml.internal.XSLTransformer>
-
-