Interface RegistrationConfigurer<S,T>
-
- All Known Implementing Classes:
RegistrationConfigurerImpl
public interface RegistrationConfigurer<S,T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <PS,PT>
ValueApplierConfigurer<PT,T>map(Function<S,PS> contentProvider)
Defines a transformation for a child element.<PS,PT>
ValueApplierConfigurer<PT,T>map(Function<S,PS> contentProvider, Class<PT> target)
Defines a transformation for a child element.<PS,PT>
ValueApplierConfigurer<List<PT>,T>mapAll(Function<S,? extends List<PS>> contentProvider)
Defines a transformation for child elements.<PS,PT>
ValueApplierConfigurer<List<PT>,T>mapAll(Function<S,? extends List<PS>> contentProvider, Class<PT> target)
Defines a transformation for child elements.void
setAfter(Consumer<T> callback)
(Optional) Defines what to do after all child element transformations have finished.void
setCreate(Function<S,T> factory)
(Required) Defines how the target object can be created from the given source.void
setWhen(Predicate<S> guard)
(Optional) Defines a predicate for this transformation.
-
-
-
Method Detail
-
map
<PS,PT> ValueApplierConfigurer<PT,T> map(Function<S,PS> contentProvider, Class<PT> target)
Defines a transformation for a child element.- Parameters:
contentProvider
- Provider for how get this element from the source elementtarget
- The desired target type for these elements- See Also:
ValueApplierConfigurer
-
map
<PS,PT> ValueApplierConfigurer<PT,T> map(Function<S,PS> contentProvider)
Defines a transformation for a child element.- Parameters:
contentProvider
- Provider for how get this element from the source element- See Also:
ValueApplierConfigurer
-
mapAll
<PS,PT> ValueApplierConfigurer<List<PT>,T> mapAll(Function<S,? extends List<PS>> contentProvider)
Defines a transformation for child elements.- Parameters:
contentProvider
- Provider for how get these elements from the source element- See Also:
ValueApplierConfigurer
-
mapAll
<PS,PT> ValueApplierConfigurer<List<PT>,T> mapAll(Function<S,? extends List<PS>> contentProvider, Class<PT> target)
Defines a transformation for child elements.- Parameters:
contentProvider
- Provider for how get these elements from the source elementtarget
- The desired target type for these elements- See Also:
ValueApplierConfigurer
-
setCreate
void setCreate(Function<S,T> factory)
(Required) Defines how the target object can be created from the given source.
-
setWhen
void setWhen(Predicate<S> guard)
(Optional) Defines a predicate for this transformation. This makes sure that the transformation only happens, if the predicate defined here tests successfully.
-
-