Interface Cascader
- All Known Implementing Classes:
DefaultCascader
public interface Cascader
Cascader which is parsing interceptor context and is discovering newly added models. The Cascader does NOT register
the new models in the context.
-
Method Summary
Modifier and TypeMethodDescriptiongetNewModels(ModelWrapper toProcess, InterceptorContextSnapshot ctxSnapshot, WrapperRegistry wrapperRegistry) Collects all newly added models basing on the given collection of models and returns them.
-
Method Details
-
getNewModels
Collection<ModelWrapper> getNewModels(ModelWrapper toProcess, InterceptorContextSnapshot ctxSnapshot, WrapperRegistry wrapperRegistry) Collects all newly added models basing on the given collection of models and returns them. E.g. for given CustomerModel, corresponding AddressModel(s) can be found (if recognized as newly added).- Parameters:
toProcess- Model to process looking for newly created child itemswrapperRegistry- Existing model wrappers, as a base to check for already registered models.ctxSnapshot- Interceptor context snapshot- Returns:
- collection of newly added models.
-