T
- The type of the instances being served by the factory.public interface RecyclableTypeFactory<T> extends TypeFactory<T>, TypeRecyclable<T>
RecyclableTypeFactory
is a TypeFactory
providing
recycling support for instances as being created by the
RecyclableTypeFactory
TypeFactory.toInstance()
(or
TypeFactory.toInstance(Properties)
. This is achieved by
implementing the TypeRecyclable
interface. Invoking the
TypeRecyclable.recycleInstance(Object)
method makes the passed
instance available to the RecyclableTypeFactory
for reusing:
Instances passed back may be served (reused) again via the methods
RecyclableTypeFactory
TypeFactory.toInstance()
(or
TypeFactory.toInstance(Properties)
.toInstance, toInstance
recycleInstance
Copyright © 2016. All rights reserved.