Interface ComponentRef<T>


public interface ComponentRef<T>
Reference to a component. TODO Dan: Investigate locking the component so that dependencies cannot stop while used through a weak dependency. Not sure how useful it would be, since most references to components are in classes that are not registered components themselves.
Since:
9.4
Author:
Dan Berindei
  • Method Details

    • running

      T running()
      Returns:
      the running component instance
      Throws:
      IllegalLifecycleStateException - if the component is not running
    • wired

      T wired()
      Returns:
      the wired component instance, which may or may not be running.
    • isRunning

      boolean isRunning()
      Returns:
      true if all of the component's start methods have run and none of its stop methods started running
    • isWired

      boolean isWired()
    • isAlias

      boolean isAlias()
    • getName

      String getName()