Class ManagedObjectPoolTypeImpl
- java.lang.Object
-
- net.officefloor.compile.impl.pool.ManagedObjectPoolTypeImpl
-
- All Implemented Interfaces:
ManagedObjectPoolType
public class ManagedObjectPoolTypeImpl extends java.lang.Object implements ManagedObjectPoolType
ManagedObjectPoolType
implementation.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description ManagedObjectPoolTypeImpl(java.lang.Class<?> pooledObjectType, ManagedObjectPoolFactory managedObjectPoolFactory, ThreadCompletionListenerFactory[] threadCompletionListenerFactories)
Instantiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ManagedObjectPoolFactory
getManagedObjectPoolFactory()
Obtains theManagedObjectPoolFactory
for theManagedObjectPool
.java.lang.Class<?>
getPooledObjectType()
Obtains the type of object being pooled.ThreadCompletionListenerFactory[]
getThreadCompletionListenerFactories()
Obtains theThreadCompletionListenerFactory
instances.
-
-
-
Constructor Detail
-
ManagedObjectPoolTypeImpl
public ManagedObjectPoolTypeImpl(java.lang.Class<?> pooledObjectType, ManagedObjectPoolFactory managedObjectPoolFactory, ThreadCompletionListenerFactory[] threadCompletionListenerFactories)
Instantiate.- Parameters:
pooledObjectType
- Pooled object type.managedObjectPoolFactory
-ManagedObjectPoolFactory
.threadCompletionListenerFactories
-ThreadCompletionListenerFactory
instances.
-
-
Method Detail
-
getPooledObjectType
public java.lang.Class<?> getPooledObjectType()
Description copied from interface:ManagedObjectPoolType
Obtains the type of object being pooled.- Specified by:
getPooledObjectType
in interfaceManagedObjectPoolType
- Returns:
- Type of object being pooled.
-
getManagedObjectPoolFactory
public ManagedObjectPoolFactory getManagedObjectPoolFactory()
Description copied from interface:ManagedObjectPoolType
Obtains theManagedObjectPoolFactory
for theManagedObjectPool
.- Specified by:
getManagedObjectPoolFactory
in interfaceManagedObjectPoolType
- Returns:
ManagedObjectPoolFactory
for theManagedObjectPool
.
-
getThreadCompletionListenerFactories
public ThreadCompletionListenerFactory[] getThreadCompletionListenerFactories()
Description copied from interface:ManagedObjectPoolType
Obtains theThreadCompletionListenerFactory
instances.- Specified by:
getThreadCompletionListenerFactories
in interfaceManagedObjectPoolType
- Returns:
ThreadCompletionListenerFactory
instances.
-
-