public interface InitTermListener
Once they are properly described in the directory instances of these
classes will be created on every successful client login. Then method
initialize()
is invoked before any business logic is executed.
Method terminate(Throwable)
is invoked when business logic has
been finished. terminate(Throwable)
is invoked regardless from the
cause of termination. The cause of business logic termination can be
determined by analyzing instance of Throwable
passed to the
terminate(Throwable)
as a parameter. In some cases it can be
null
and this can be considered as a normal exit, but even if
it is not null
this not necessarily means that business logic
has been finished abnormally.
Modifier and Type | Method and Description |
---|---|
void |
initialize()
This method is invoked when business logic main entry point is about to
be invoked.
|
void |
terminate(java.lang.Throwable t)
This method is invoked when business logic entry point finished its
work.
|
void initialize()
void terminate(java.lang.Throwable t)
t
- Error or exception which caused exit from business logic. Can
be null
.