Module org.refcodes.factory
Package org.refcodes.factory
-
Interface Summary Interface Description BeanFactory<TID> A lookup factory supporting type and TID lookup.BeanLookupFactory<TID> TheBeanLookupFactory
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).CollectionFactory<C extends Collection<?>> TheCollectionFactory
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).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).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).MarshalFactory<T> 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).MarshalFactory.MarshalFactoryComplement<C> TheMarshalFactory.MarshalFactoryComplement
provides inverse functionality to theMarshalFactory
.MarshalFactory.MarshalFactoryComposite<T,C> 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
.MarshalTypeFactory.MarshalTypeFactoryComplement<T,C> TheMarshalTypeFactory.MarshalTypeFactoryComplement
provides inverse functionality to theMarshalTypeFactory
.MarshalTypeFactory.MarshalTypeFactoryComposite<T,SRC,C> TheMarshalTypeFactory.MarshalTypeFactoryComposite
providesMarshalTypeFactory
as well asMarshalTypeFactory.MarshalTypeFactoryComplement
functionality.Packager<UNPACK,PACK,PACKEXC extends Exception> 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.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).TypeLookupFactory 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.UnmarshalFactory.UnmarshalFactoryComplement<C> TheUnmarshalFactory.UnmarshalFactoryComplement
provides inverse functionality to theUnmarshalFactory
.UnmarshalFactory.UnmarshalFactoryComposite<T,C> 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.UnmarshalTypeFactory.UnmarshalTypeFactoryComplement<T,C> TheUnmarshalTypeFactory.UnmarshalTypeFactoryComplement
provides inverse functionality to theUnmarshalTypeFactory
.UnmarshalTypeFactory.UnmarshalTypeFactoryComposite<T,SRC,C> TheUnmarshalTypeFactory.UnmarshalTypeFactoryComposite
providesUnmarshalTypeFactory
as well asUnmarshalTypeFactory.UnmarshalTypeFactoryComplement
functionality. -
Class Summary Class Description ClassTypeFactory<T> TheClassTypeFactory
produces instances of the givenClass
by invoking the empty constructor.PrototypeFactory<T> ThePrototypeFactory
creates instances of a specific type from a prototype instance. -
Exception Summary Exception Description FactoryRuntimeException The Class FactoryRuntimeException.UnexpectedFactoryRuntimeException Thrown in case of a caught runtime exception of an underlying framework which only shows up at runtime (probably not documented in any API).