Class InstanceImpl

  • All Implemented Interfaces:
    Instance

    public class InstanceImpl
    extends Object
    implements Instance
    Author:
    jwells
    • Method Detail

      • getBean

        public Object getBean()
        Description copied from interface: Instance
        Gets the bean (or bean-like-map) associated with this instance
        Specified by:
        getBean in interface Instance
        Returns:
        The non-null bean or bean-like map
      • getMetadata

        public Object getMetadata()
        Description copied from interface: Instance
        Gets information about this instance. Can be used to describe the bean in some useful way
        Specified by:
        getMetadata in interface Instance
        Returns:
        The possibly null metadata associated with this instance
      • setMetadata

        public void setMetadata​(Object metadata)
        Description copied from interface: Instance
        Sets an object containing information about this instance. Can be used to describe the bean in some useful way
        Specified by:
        setMetadata in interface Instance
        Parameters:
        metadata - The possibly null metadata to be associated with this instance