public interface Session
SessionExt
,
BasicSession
Modifier and Type | Interface and Description |
---|---|
static interface |
Session.Event
Root interface for all events happened when state of Session changed.
|
static class |
Session.Fault
Exception signaling of the problem happened while dealing with Session.
|
static interface |
Session.Observer
Interface for observers of the Session state.
|
static interface |
Session.Update
Root interface for all updates to Session.
|
Modifier and Type | Method and Description |
---|---|
void |
addObserver(Session.Observer obs)
Registers the observer.
|
void |
dispose()
Disposes configuration.
|
Parameters |
getParameters()
Data required to execute tests.
|
java.util.List<java.lang.String> |
getPropertyNames()
Returns the config property names
|
java.lang.String |
getValue(java.lang.String name) |
boolean |
isReady() |
void |
notifyObservers(Session.Event evn)
Delivers events to the all registered observers
|
void |
removeObserver(Session.Observer obs)
Unregisters the observer.
|
void |
restore(java.util.Map map)
Restores the config state from the map
|
void |
save(java.util.Map map)
Saves the config state to the map
|
void |
update(Session.Update u)
Method to be invoked from outside to change the state of the Session.
|
void |
update(Session.Update u,
boolean updateConfig)
Method to be invoked from outside to change the state of the Session.
|
void update(Session.Update u) throws Session.Fault
u
- - object encapsulating data describing the change.Session.Fault
- in case of any problemvoid update(Session.Update u, boolean updateConfig) throws Session.Fault
u
- - object encapsulating data describing the change.updateConfig
- - hint whether to reload the configuration from diskSession.Fault
- in case of any problemvoid addObserver(Session.Observer obs)
obs
- - observervoid removeObserver(Session.Observer obs)
obs
- - observervoid notifyObservers(Session.Event evn)
evn
- - event to be sent out.void save(java.util.Map map)
map
- Session.Fault
void restore(java.util.Map map) throws Session.Fault
map
- Session.Fault
void dispose()
java.util.List<java.lang.String> getPropertyNames()
java.lang.String getValue(java.lang.String name)
java.lang.IllegalArgumentException
- if case of unknown namegetPropertyNames()
boolean isReady()
Parameters getParameters()
Copyright (c) 1996, 2015, Oracle and/or its affiliates. All rights reserved.