Module org.refcodes.factory
Package org.refcodes.factory
Interface UnmarshalFactory.UnmarshalFactoryComplement<C>
- Type Parameters:
C
- The type of the complement regarding the type of theUnmarshalFactory
.
- All Known Subinterfaces:
UnmarshalFactory.UnmarshalFactoryComposite<T,
C>
- Enclosing interface:
- UnmarshalFactory<SRC>
public static interface UnmarshalFactory.UnmarshalFactoryComplement<C>
The
UnmarshalFactory.UnmarshalFactoryComplement
provides inverse functionality to
the UnmarshalFactory
.-
Method Summary
Modifier and TypeMethodDescriptionfromMarshaled
(C aContext, Class<?>... aTypes) Same asUnmarshalFactory.toUnmarshaled(Object, Class...)
passing the (source's) complement instead of the source.<T> T
fromMarshaled
(C aContext, Class<T> aType) Same asUnmarshalFactory.toUnmarshaled(Object, Class)
passing the (source's) complement instead of the source.<T> T
Same asUnmarshalFactory.toUnmarshaled(Object, Class, Map)
passing the (source's) complement instead of the source.Same asUnmarshalFactory.toUnmarshaled(Object, Map, Class...)
passing the (source's) complement instead of the source.
-
Method Details
-
fromMarshaled
Same asUnmarshalFactory.toUnmarshaled(Object, Class)
passing the (source's) complement instead of the source.- Type Parameters:
T
- the generic type- Parameters:
aContext
- The context influencing the creation of the instance.aType
- The type identifying the instance to be created / retrieved.- Returns:
- The produced instance.
- Throws:
org.refcodes.exception.UnmarshalException
- the unmarshal exception
-
fromMarshaled
Object fromMarshaled(C aContext, Class<?>... aTypes) throws org.refcodes.exception.UnmarshalException Same asUnmarshalFactory.toUnmarshaled(Object, Class...)
passing the (source's) complement instead of the source.- Parameters:
aContext
- The context influencing the creation of the instance.aTypes
- The types identifying or included by the instance to be created / retrieved.- Returns:
- The produced instance.
- Throws:
org.refcodes.exception.UnmarshalException
- the unmarshal exception
-
fromMarshaled
Object fromMarshaled(C aContext, Map<String, String> aProperties, Class<?>... aTypes) throws org.refcodes.exception.UnmarshalExceptionSame asUnmarshalFactory.toUnmarshaled(Object, Map, Class...)
passing the (source's) complement instead of the source.- Parameters:
aContext
- The context influencing the creation of the instance.aProperties
- the propertiesaTypes
- The types identifying or included by the instance to be created / retrieved.- Returns:
- The produced instance.
- Throws:
org.refcodes.exception.UnmarshalException
- the unmarshal exception
-
fromMarshaled
<T> T fromMarshaled(C aContext, Class<T> aType, Map<String, String> aProperties) throws org.refcodes.exception.UnmarshalExceptionSame asUnmarshalFactory.toUnmarshaled(Object, Class, Map)
passing the (source's) complement instead of the source.- Type Parameters:
T
- the generic type- Parameters:
aContext
- The context influencing the creation of the instance.aType
- The type identifying the instance to be created / retrieved.aProperties
- the properties- Returns:
- The produced instance.
- Throws:
org.refcodes.exception.UnmarshalException
- the unmarshal exception
-