Class InternalAttributeHandler


  • public class InternalAttributeHandler
    extends Object
    Internally handles attributes (set / get).
    Since:
    2.0.0
    Author:
    Jerome Leleu
    • Constructor Detail

      • InternalAttributeHandler

        public InternalAttributeHandler()
    • Method Detail

      • prepare

        public Object prepare​(Object value)
        Before saving the attribute into the attributes map.
        Parameters:
        value - the original value
        Returns:
        the prepared value
      • restore

        public Object restore​(Object value)
        After retrieving the attribute from the attributes map.
        Parameters:
        value - the retrieved value
        Returns:
        the restored value
      • isStringify

        public boolean isStringify()
      • setStringify

        public void setStringify​(boolean stringify)
        Define if we need to turn all attributes into strings, to properly work with CAS (regarding Kryo serialization or service ticket validation).
        Parameters:
        stringify - whether we need to turn all attributes into strings