Module org.refcodes.factory
Package org.refcodes.factory
package org.refcodes.factory
-
ClassDescriptionBeanFactory<TID>A lookup factory supporting type and TID lookup.BeanLookupFactory<TID>The
BeanLookupFactory
defines the functionality which must be provided in order to represent a factory for object creation of objects identified by an TIDString
and of the expected type (in contrast to theTypeFactory
and theLookupFactory
which create instances of a predefined type specified with a generic argument).TheClassTypeFactory
produces instances of the givenClass
by invoking the empty constructor.ContextLookupFactory<T,TID, CTX> TheContextLookupFactory
defines the functionality which must be provided in order to represent a factory for object creation of objects identified by an TIDString
and of a predefined type specified with a generic argument (in contrast to theBeanLookupFactory
, which creates instances of an expected type).ContextTypeFactory<T,CTX> TheContextTypeFactory
defines the functionality which must be provided in order to represent a factory for object creation depending on some provided context and of a predefined type specified with a generic argument (in contrast to theBeanLookupFactory
, which creates instances of an expected type).Factory<T>TheFactory
defines the most basic functionality which must be provided in order to create objects of a predefined type.The ClassFactoryRuntimeException
.Initializer<T>TheInitializer
defines the most basic functionality which must be provided in order to initialize (configure) objects of a predefined type.Thrown in case of a caught runtime exception of an underlying framework which only shows up at runtime (probably not documented in any API).LookupFactory<T,TID> TheLookupFactory
defines the functionality which must be provided in order to represent a factory for object creation of objects identified by an TIDString
and of a predefined type specified with a generic argument (in contrast to theBeanLookupFactory
, which creates instances of an expected type).TheMarshalFactory
defines the functionality which must be provided in order to represent a factory for object creation depending on some provided context and of a predefined type specified with a generic argument (in contrast to theBeanLookupFactory
, which creates instances of an expected type).TheMarshalFactory.MarshalFactoryComplement
provides inverse functionality to theMarshalFactory
.TheMarshalFactory.MarshalFactoryComposite
providesMarshalFactory
as well asMarshalFactory.MarshalFactoryComplement
functionality.MarshalTypeFactory<T,SRC> TheMarshalTypeFactory
defines the functionality which must be provided in order to create marshaling functionality from an internal representation of a given data structure to an external representation such as aString
or anInputStream
.TheMarshalTypeFactory.MarshalTypeFactoryComplement
provides inverse functionality to theMarshalTypeFactory
.TheMarshalTypeFactory.MarshalTypeFactoryComposite
providesMarshalTypeFactory
as well asMarshalTypeFactory.MarshalTypeFactoryComplement
functionality.ThePackager
interface defines methods to pack instances and return the packed, wrapped or boxed instances.Packager.Extractor<PACK,UNPACK, UNPACKEXC extends Exception> ThePackager.Extractor
interface defines methods to unpack instances and return the unpacked, unwrapped or unboxed instances.Packager.PackageProcessor<UNPACK,PACK, UNPACKEXC extends Exception, PACKEXC extends Exception> ThePackager.PackageProcessor
type combines aPackager
with anPackager.Extractor
to package and extract in one module.ThePrototypeFactory
creates instances of a specific type from a prototype instance.TypeFactory<T>TheTypeFactory
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 theBeanLookupFactory
, which creates instances of an expected type).TheTypeLookupFactory
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 theTypeFactory
and theLookupFactory
which create instances of a predefined type specified with a generic argument).UnmarshalFactory<SRC>TheUnmarshalFactory
defines the functionality which must be provided in order to represent a factory for object creation of an object being of a requested type (in contrast to theTypeFactory
and theLookupFactory
) from an instance of a provided type.TheUnmarshalFactory.UnmarshalFactoryComplement
provides inverse functionality to theUnmarshalFactory
.TheUnmarshalFactory.UnmarshalFactoryComposite
providesUnmarshalFactory
as well asUnmarshalFactory.UnmarshalFactoryComplement
functionality.UnmarshalTypeFactory<T,SRC> TheUnmarshalTypeFactory
defines the functionality which must be provided in order to create unmarshaling functionality from an external representation such as aString
or anInputStream
to an internal representation of a given data structure.TheUnmarshalTypeFactory.UnmarshalTypeFactoryComplement
provides inverse functionality to theUnmarshalTypeFactory
.TheUnmarshalTypeFactory.UnmarshalTypeFactoryComposite
providesUnmarshalTypeFactory
as well asUnmarshalTypeFactory.UnmarshalTypeFactoryComplement
functionality.