Interface Observer

All Known Subinterfaces:
ChildInvocationObserver, CollocatedObserver, ConnectionObserver, DispatchObserver, InvocationObserver, RemoteObserver, ThreadObserver
All Known Implementing Classes:
Observer, ObserverWithDelegate, ObserverWithDelegateI

public interface Observer
The object observer interface used by instrumented objects to notify the observer of their existence.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Notifies the observer that an instrumented object was created.
    void
    Notifies the observer that an instrumented object was destroyed.
    void
    failed(String exceptionName)
    Notifies the observer of a failure.
  • Method Details

    • attach

      void attach()
      Notifies the observer that an instrumented object was created.
    • detach

      void detach()
      Notifies the observer that an instrumented object was destroyed.
    • failed

      void failed(String exceptionName)
      Notifies the observer of a failure.
      Parameters:
      exceptionName - The name of the exception.