public final class SessionBridge extends Object
SessionBridge.SessionChanger
can decide to change the session in order to perform
the given action.
In the current implementation, step into action of JPDA debugger is suggested
for a session change only. The support can be extended according to the future
requirements.Modifier and Type | Class and Description |
---|---|
static interface |
SessionBridge.SessionChanger
Implement this interface to handle a debug session change.
|
Modifier and Type | Method and Description |
---|---|
static SessionBridge |
getDefault()
Get the default instance of SessionBridge.
|
boolean |
isChangerFor(String action)
Test whether there is some session changer registered for the given action.
|
boolean |
suggestChange(Session origin,
String action,
Map<Object,Object> properties)
Suggest a session change to perform a particular action.
|
public static SessionBridge getDefault()
public boolean suggestChange(Session origin, String action, Map<Object,Object> properties)
origin
- The original session suggesting the session changeaction
- An action - a constant from ActionsManager.Action_*properties
- Properties describing the current state of the current session before the given action.
The actual properties are specific for the particular session type.true
when the session is changed and another session
decided to perform the given action.false
when no other session would like to perform this action.public boolean isChangerFor(String action)
action
- An action - a constant from ActionsManager.Action_*true
when there is some session changer registered
for this action, false
otherwise.