Package arez.spy

Interface ComponentInfo

All Superinterfaces:
ElementInfo

public interface ComponentInfo extends ElementInfo
A representation of a component instance exposed to spy framework.
  • Method Details

    • getType

      @Nonnull String getType()
      Return the component type. This is an opaque string specified by the user.
      Returns:
      the component type.
    • getId

      @Nonnull Object getId()
      Return the unique id of the component. This will return null for singletons.
      Returns:
      the unique id of the component.
    • getObservableValues

      Return the Observables associated with the component. This does NOT include observables that are associated with a ComputableValue. This collection returned is unmodifiable.
      Returns:
      the associated observables.
    • getObservers

      Return the Observers associated with the component. This does NOT include observers that are associated with a ComputableValue. This collection returned is unmodifiable. This operation recreates the list and is a relatively expensive operation.
      Returns:
      the associated observers.
    • getComputableValues

      Return the ComputableValues associated with the component. This collection returned is unmodifiable.
      Returns:
      the associated computable values.