Class InstanceImpl

  • All Implemented Interfaces:
    Instance

    public class InstanceImpl
    extends java.lang.Object
    implements Instance
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.Object bean  
      private java.lang.Object metadata  
    • Constructor Summary

      Constructors 
      Constructor Description
      InstanceImpl​(java.lang.Object bean, java.lang.Object metadata)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getBean()
      Gets the bean (or bean-like-map) associated with this instance
      java.lang.Object getMetadata()
      Gets information about this instance.
      void setMetadata​(java.lang.Object metadata)
      Sets an object containing information about this instance.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • bean

        private final java.lang.Object bean
      • metadata

        private java.lang.Object metadata
    • Constructor Detail

      • InstanceImpl

        InstanceImpl​(java.lang.Object bean,
                     java.lang.Object metadata)
    • Method Detail

      • getBean

        public java.lang.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 java.lang.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​(java.lang.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
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object