Class DynamicLocalizedAttributesStringSampleBean
- java.lang.Object
-
- de.hybris.platform.servicelayer.test.DynamicLocalizedAttributesStringSampleBean
-
- All Implemented Interfaces:
DynamicAttributeHandler<java.lang.String,TestItemType2Model>,DynamicLocalizedAttributeHandler<java.lang.String,TestItemType2Model>
public class DynamicLocalizedAttributesStringSampleBean extends java.lang.Object implements DynamicLocalizedAttributeHandler<java.lang.String,TestItemType2Model>
Sample implementation of dynamic attribute (jalo replacement) for String value.- Spring Bean ID:
- dynamicLocalizedAttributesStringSampleBean
-
-
Constructor Summary
Constructors Constructor Description DynamicLocalizedAttributesStringSampleBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.Stringget(TestItemType2Model item)Holds logic behind getter for dynamic attribute.java.lang.Stringget(TestItemType2Model item, java.util.Locale loc)Holds logic behind getter for dynamic attribute.protected I18NServiceinit()Deprecated, for removal: This API element is subject to removal in a future version.since agesvoidset(TestItemType2Model item, java.lang.String value)Holds logic behind setter for dynamic attribute.voidset(TestItemType2Model item, java.lang.String value, java.util.Locale loc)Holds logic behind setter for dynamic attribute.voidsetI18NService(I18NService i18nService)
-
-
-
Method Detail
-
get
public java.lang.String get(TestItemType2Model item)
Holds logic behind getter for dynamic attribute.- Specified by:
getin interfaceDynamicAttributeHandler<java.lang.String,TestItemType2Model>- Parameters:
item- model for which dynamic attribute is declared.- Returns:
- computed value.
-
set
public void set(TestItemType2Model item, java.lang.String value)
Holds logic behind setter for dynamic attribute.- Specified by:
setin interfaceDynamicAttributeHandler<java.lang.String,TestItemType2Model>- Parameters:
item- model for which dynamic attribute is declared.value- the value which will be used by setter logic.
-
get
public java.lang.String get(TestItemType2Model item, java.util.Locale loc)
Holds logic behind getter for dynamic attribute.- Specified by:
getin interfaceDynamicLocalizedAttributeHandler<java.lang.String,TestItemType2Model>- Parameters:
item- model for which dynamic attribute is declared.loc- the locale for the given attribute- Returns:
- computed value.
-
set
public void set(TestItemType2Model item, java.lang.String value, java.util.Locale loc)
Holds logic behind setter for dynamic attribute.- Specified by:
setin interfaceDynamicLocalizedAttributeHandler<java.lang.String,TestItemType2Model>- Parameters:
item- model for which dynamic attribute is declared.value- the value which will be used by setter logic.loc- the locale for the given attribute
-
setI18NService
public void setI18NService(I18NService i18nService)
-
init
@Deprecated(since="ages", forRemoval=true) protected I18NService init()Deprecated, for removal: This API element is subject to removal in a future version.since ages
-
-