Class WithParameters

  • Direct Known Subclasses:
    BaseDescriptor

    public class WithParameters
    extends Object
    Base class for components and POJOs that can have unknown parameters. When extended by POJOs the unknown parameters are serialized as JSON side by side with the other (known) POJO fields. When extended by components, they should have ComponentInstantiationStrategy.PER_LOOKUP.
    Since:
    12.10
    Version:
    $Id: f13594f28f740ed161cbaa061bb927ded680f681 $
    • Constructor Detail

      • WithParameters

        public WithParameters()
    • Method Detail

      • getParameters

        public Map<String,​Object> getParameters()
        Returns:
        the parameters
      • setParameter

        public Object setParameter​(String key,
                                   Object value)
        Set the value of a parameter.
        Parameters:
        key - the parameter name
        value - the parameter value
        Returns:
        the previous parameter value
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object