Package com.hybris.cockpitng.i18n
Class AbstractExecutionBody<T>
- java.lang.Object
-
- com.hybris.cockpitng.i18n.AbstractExecutionBody<T>
-
public abstract class AbstractExecutionBody<T> extends java.lang.ObjectTo execute code in a context of a different Locale then the current one you need to implement this class. SeeCockpitLocaleService.executeWithLocale(AbstractExecutionBody, java.util.Locale).
-
-
Constructor Summary
Constructors Constructor Description AbstractExecutionBody()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Texecute()You can override this method if you want to have a result.voidexecuteWithoutResult()You can override this method if you do not need a result.
-
-
-
Method Detail
-
execute
public T execute()
You can override this method if you want to have a result.- Returns:
- the return value of your desire
-
executeWithoutResult
public void executeWithoutResult()
You can override this method if you do not need a result.
-
-