Class ConvertBeanToMapOperation

  • All Implemented Interfaces:
    Operation<java.lang.Object,​java.lang.Object,​java.util.Map<java.lang.String,​java.lang.Object>>

    public class ConvertBeanToMapOperation
    extends java.lang.Object
    implements Operation<java.lang.Object,​java.lang.Object,​java.util.Map<java.lang.String,​java.lang.Object>>
    This operation converts a given single parameter to a key-value-pair map. Meant to be used like:

    (aVariableWithABeanObject asMap)
    Author:
    Rene Schneider - initial API and implementation
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.String,​java.lang.Object> execute​(java.lang.Object aParameter, java.lang.Object anUnusedSecondParameter)
      Executes the operation logic.
      • Methods inherited from class java.lang.Object

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

      • valueConverter

        @Inject
        protected ValueConverter valueConverter
        The value converter being used.
    • Constructor Detail

      • ConvertBeanToMapOperation

        public ConvertBeanToMapOperation()
    • Method Detail

      • execute

        public java.util.Map<java.lang.String,​java.lang.Object> execute​(java.lang.Object aParameter,
                                                                              java.lang.Object anUnusedSecondParameter)
        Description copied from interface: Operation
        Executes the operation logic.
        Specified by:
        execute in interface Operation<java.lang.Object,​java.lang.Object,​java.util.Map<java.lang.String,​java.lang.Object>>
        Parameters:
        aParameter - the prefix parameter, or null if none was given or the value is not available at the time of the call
        anUnusedSecondParameter - the postfix parameter, or null if none was given or the value is not available at the time of the call
        Returns:
        the result value