Class VoidInterceptor
- java.lang.Object
-
- de.hybris.platform.servicelayer.interceptor.impl.VoidInterceptor
-
- All Implemented Interfaces:
InitDefaultsInterceptor,Interceptor,LoadInterceptor,PrepareInterceptor,RemoveInterceptor,ValidateInterceptor
public class VoidInterceptor extends java.lang.Object implements PrepareInterceptor, ValidateInterceptor, RemoveInterceptor, LoadInterceptor, InitDefaultsInterceptor
Void interceptor. Does nothing. May be used for switching off other interceptors.
-
-
Constructor Summary
Constructors Constructor Description VoidInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonInitDefaults(java.lang.Object model, InterceptorContext ctx)This VoidInterceptor do nothing herevoidonLoad(java.lang.Object model, InterceptorContext ctx)This VoidInterceptor do nothing herevoidonPrepare(java.lang.Object model, InterceptorContext ctx)This VoidInterceptor do nothing herevoidonRemove(java.lang.Object model, InterceptorContext ctx)This VoidInterceptor do nothing herevoidonValidate(java.lang.Object model, InterceptorContext ctx)This VoidInterceptor do nothing here
-
-
-
Method Detail
-
onPrepare
public void onPrepare(java.lang.Object model, InterceptorContext ctx) throws InterceptorExceptionThis VoidInterceptor do nothing here- Specified by:
onPreparein interfacePrepareInterceptor- Parameters:
model- the model which values has to be preparedctx- theInterceptorContext- Throws:
InterceptorException- if an error occured during the preparation
-
onValidate
public void onValidate(java.lang.Object model, InterceptorContext ctx) throws InterceptorExceptionThis VoidInterceptor do nothing here- Specified by:
onValidatein interfaceValidateInterceptor- Parameters:
model- the model which values has to be validatedctx- theInterceptorContext- Throws:
InterceptorException- if any values of the model are not valid.
-
onRemove
public void onRemove(java.lang.Object model, InterceptorContext ctx) throws InterceptorExceptionThis VoidInterceptor do nothing here- Specified by:
onRemovein interfaceRemoveInterceptor- Parameters:
model- the model which should be removedctx- theInterceptorContext- Throws:
InterceptorException- if the remove reports an error
-
onLoad
public void onLoad(java.lang.Object model, InterceptorContext ctx) throws InterceptorExceptionThis VoidInterceptor do nothing here- Specified by:
onLoadin interfaceLoadInterceptor- Parameters:
model- the model to be loadedctx- theInterceptorContext- Throws:
InterceptorException- if the model could not be loaded
-
onInitDefaults
public void onInitDefaults(java.lang.Object model, InterceptorContext ctx) throws InterceptorExceptionThis VoidInterceptor do nothing here- Specified by:
onInitDefaultsin interfaceInitDefaultsInterceptor- Parameters:
model- the model which values should be set to the default valuesctx- theInterceptorContext- Throws:
InterceptorException- if the loading of the default value reports an error.
-
-