Interface LoadInterceptor<MODEL>
-
- All Superinterfaces:
Interceptor
- All Known Implementing Classes:
ConstraintGroupLoadInterceptor,SolrIndexedPropertyLoadInterceptor,SubscriptionPricePlanLoadInterceptor,UsageChargeLoadInterceptor,VoidInterceptor
public interface LoadInterceptor<MODEL> extends Interceptor
The LoadInterceptor is called whenever a model is loaded from the database. Use this LoadInterceptor for changing model values after load from the database.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonLoad(MODEL model, InterceptorContext ctx)If a model is loaded from the database this method is called by the model service.
-
-
-
Method Detail
-
onLoad
void onLoad(MODEL model, InterceptorContext ctx) throws InterceptorException
If a model is loaded from the database this method is called by the model service.- Parameters:
model- the model to be loadedctx- theInterceptorContext- Throws:
InterceptorException- if the model could not be loaded
-
-