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 void
onInitDefaults(java.lang.Object model, InterceptorContext ctx)
This VoidInterceptor do nothing herevoid
onLoad(java.lang.Object model, InterceptorContext ctx)
This VoidInterceptor do nothing herevoid
onPrepare(java.lang.Object model, InterceptorContext ctx)
This VoidInterceptor do nothing herevoid
onRemove(java.lang.Object model, InterceptorContext ctx)
This VoidInterceptor do nothing herevoid
onValidate(java.lang.Object model, InterceptorContext ctx)
This VoidInterceptor do nothing here
-
-
-
Method Detail
-
onPrepare
public void onPrepare(java.lang.Object model, InterceptorContext ctx) throws InterceptorException
This VoidInterceptor do nothing here- Specified by:
onPrepare
in 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 InterceptorException
This VoidInterceptor do nothing here- Specified by:
onValidate
in 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 InterceptorException
This VoidInterceptor do nothing here- Specified by:
onRemove
in 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 InterceptorException
This VoidInterceptor do nothing here- Specified by:
onLoad
in 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 InterceptorException
This VoidInterceptor do nothing here- Specified by:
onInitDefaults
in 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.
-
-