public class SessionCheckImpl extends java.lang.Object implements SessionCheckInterface
The implementation prints the name of the factory on the Standard out.
AoFactory
,
SessionCheckInterface
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
factoryName |
Constructor and Description |
---|
SessionCheckImpl() |
Modifier and Type | Method and Description |
---|---|
void |
checkSession(AoSession aoSess)
Method called every time the new session is created or before the session is closed.
|
void |
close()
Close the connections that are necessary to made the checks.
|
void |
init(java.lang.String factory)
Initialize the session communication.
|
public void init(java.lang.String factory)
init
in interface SessionCheckInterface
factory
- the name of the factorypublic void checkSession(AoSession aoSess) throws AoException
checkSession
in interface SessionCheckInterface
aoSess
- the new created session.AoException
- any occurring ASAM ODS exception.public void close()
close
in interface SessionCheckInterface