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