public interface InitDefaultsInterceptor<MODEL> extends Interceptor
modelService.create() method or when the modelService.initDefaults method is called.
Use this interceptor to fill the model with additional default values, apart from the values defined in the items.xml
file.| Modifier and Type | Method and Description |
|---|---|
void |
onInitDefaults(MODEL model,
InterceptorContext ctx)
Called by
ModelService.initDefaults(Object) after instantiate a new model. |
void onInitDefaults(MODEL model, InterceptorContext ctx) throws InterceptorException
ModelService.initDefaults(Object) after instantiate a new model.model - the model which values should be set to the default valuesctx - the InterceptorContextInterceptorException - if the loading of the default value reports an error.Copyright © 2018 SAP SE. All Rights Reserved.