AbstractTypedRecyclingFactory
is an abstract implementation of
the TypedRecyclingFactory
taking care on recycling and reusing
instances.AbstractTypedRecyclingFactory
.AbstractTypedRecyclingFactory
which allows
only a given maximum of recycled instances to be contained in this
factory.AbstractTypedRecyclingFactory
.LookupIdFactory
defines the functionality which must be provided
in order to represent a factory for object creation of objects identified by
an ID String
and of the expected type (in contrast to the
TypedFactory
and the TypedLookupIdFactory
which create
instances of a predefined type specified with a generic argument).LookupTypeFactory
defines the functionality which must be
provided in order to represent a factory for object creation of *ALL* objects
being of a requested type (in contrast to the TypedFactory
and the
TypedLookupIdFactory
which create instances of a predefined type
specified with a generic argument).AbstractTypedRecyclingFactory.createInstance()
in case
there are no more recycled objects available (provided via
AbstractTypedRecyclingFactory.recycleInstance(Object)
).
-------------------------------------------------------------------------
This method creates / retrieves an instance of the given type with the
given identifier (name) constructed as defined in one to many
configuration files.AbstractTypedRecyclingFactory.createInstance(Properties)
in case there are no more recycled objects available (provided via
AbstractTypedRecyclingFactory.recycleInstance(Object)
).
-------------------------------------------------------------------------
This method creates / retrieves an instance of the given type with the
given identifier (name) constructed as defined in one to many
configuration files.TypedFactory
defines the functionality which must be provided in
order to represent a factory for object creation of a predefined type
specified with a generic argument (in contrast to the LookupIdFactory
, which creates instances of an expected type).TypedLookupIdFactory
defines the functionality which must be
provided in order to represent a factory for object creation of objects
identified by an ID String
and of a predefined type specified with a
generic argument (in contrast to the LookupIdFactory
, which creates
instances of an expected type).TypedRecycling
interface takes once
created instances back and will recycle them in terms of reusing: When a new
instance is to be created and the factory contains recycled instances, then
first recycled instances are returned till there are no more such instances
available.TypedRecyclingFactory
is a TypedFactory
providing
recycling support for instances as being created by the
TypedRecyclingFactory
TypedFactory.createInstance()
(or
TypedFactory.createInstance(Properties)
.TypedTypeFactory
defines the functionality which must be provided
in order to represent a factory for object creation of *ALL* objects being of
a requested type (in contrast to the TypedFactory
and the
TypedLookupIdFactory
which create instances of a predefined type
specified with a generic argument).TypedTypeFactory
is a wrapper for the LookupTypeFactory
using the LookupTypeFactory
for creating the dedicated type.TypedTypeFactoryImpl
wrapping
LookupTypeFactory
for creating instances of the required type.Copyright © 2015. All rights reserved.