public final class DecorationHandle extends Object
Constructor and Description |
---|
DecorationHandle(Object decorated)
Constructs a DecorationHandle.
|
DecorationHandle(Object decorated,
Runnable onStop)
Constructs a DecorationHandle.
|
Modifier and Type | Method and Description |
---|---|
void |
addStopAction(Runnable onStop)
Adds an action to execute when the decoration stops.
|
Object |
getDecorated()
Returns the decorated object.
|
void |
stop()
Notifies the handle to stop the decoration.
|
public DecorationHandle(Object decorated)
decorated
- The decorated object.public Object getDecorated()
public void addStopAction(Runnable onStop)
onStop
- The action to execute when the decoration is stopped.public void stop()
Copyright 2011-2017 ForgeRock AS.