Class InstanceImpl

java.lang.Object
org.glassfish.hk2.configuration.hub.internal.InstanceImpl
All Implemented Interfaces:
Instance

public class InstanceImpl extends Object implements Instance
  • Field Details

    • bean

      private final Object bean
    • metadata

      private Object metadata
  • Constructor Details

  • Method Details

    • 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
    • toString

      public String toString()
      Overrides:
      toString in class Object