Class UsageChargeLoadInterceptor
- java.lang.Object
-
- de.hybris.platform.subscriptionservices.interceptor.impl.UsageChargeLoadInterceptor
-
- All Implemented Interfaces:
Interceptor,LoadInterceptor
public class UsageChargeLoadInterceptor extends java.lang.Object implements LoadInterceptor
LoadInterceptorimplementation for instances ofUsageChargeModel. Ensures that:
- tiered usage charge entries are sorted by tier start (ascending)
- the overage usage charge entry is always the last entry
-
-
Constructor Summary
Constructors Constructor Description UsageChargeLoadInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonLoad(java.lang.Object model, InterceptorContext ctx)If a model is loaded from the database this method is called by the model service.
-
-
-
Method Detail
-
onLoad
public void onLoad(@Nonnull java.lang.Object model, @Nonnull InterceptorContext ctx) throws InterceptorExceptionDescription copied from interface:LoadInterceptorIf a model is loaded from the database this method is called by the model service.- Specified by:
onLoadin interfaceLoadInterceptor- Parameters:
model- the model to be loadedctx- theInterceptorContext- Throws:
InterceptorException- if the model could not be loaded
-
-