Class DecorationHandle

java.lang.Object
org.forgerock.openig.decoration.DecorationHandle

public final class DecorationHandle extends Object
A DecorationHandle is handle to get the decorated object and being able to notify the decoration to stop.
  • Constructor Details

    • DecorationHandle

      public DecorationHandle(Object decorated)
      Constructs a DecorationHandle.
      Parameters:
      decorated - The decorated object.
    • DecorationHandle

      public DecorationHandle(Object decorated, Runnable onStop)
      Constructs a DecorationHandle.
      Parameters:
      decorated - The decorated object.
      onStop - The action to execute when the decoration is stopped.
  • Method Details

    • getDecorated

      public Object getDecorated()
      Returns the decorated object.
      Returns:
      the decorated object.
    • addStopAction

      public void addStopAction(Runnable onStop)
      Adds an action to execute when the decoration stops.
      Parameters:
      onStop - The action to execute when the decoration is stopped.
    • stop

      public void stop()
      Notifies the handle to stop the decoration.