Class DynamicAttributesIntSampleBean

  • All Implemented Interfaces:
    DynamicAttributeHandler<java.lang.Integer,​TestItemType2Model>

    public class DynamicAttributesIntSampleBean
    extends java.lang.Object
    implements DynamicAttributeHandler<java.lang.Integer,​TestItemType2Model>
    Sample implementation of dynamic attribute (jalo replacement) for int value. Attribute is defined as int but this bean defines all the values as Integer. This is by design.
    Spring Bean ID:
    dynamicAttributesIntSampleBean
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Integer get​(TestItemType2Model model)
      Holds logic behind getter for dynamic attribute.
      void set​(TestItemType2Model model, java.lang.Integer value)
      Holds logic behind setter for dynamic attribute.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DynamicAttributesIntSampleBean

        public DynamicAttributesIntSampleBean()
    • Method Detail

      • set

        public void set​(TestItemType2Model model,
                        java.lang.Integer value)
        Holds logic behind setter for dynamic attribute.
        Specified by:
        set in interface DynamicAttributeHandler<java.lang.Integer,​TestItemType2Model>
        Parameters:
        model - model for which dynamic attribute is declared.
        value - the value which will be used by setter logic.