public interface EventMessengerInterface
Classes implementing this interface must have a default constructor
without any parameters, because it will instanciated by the
Class.newInstance
method.
Modifier and Type | Field and Description |
---|---|
static String |
DISABLED
Name of the compulsory ini-file item EventFilter
|
static String |
EVENT_FILTER
Name of the compulsory ini-file item EventFilter
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
The EventMessenger should do all the cleaning up it needs before it dies.
|
String[] |
getItems()
The EventMessenger must supply a get method to return all its items
|
String |
getLastError(boolean reset)
Method to access the latest error.
|
String |
getName()
The EventMessenger must supply a get method to return its ini-file section name
|
int |
getSendState()
Get the current state of a eventMessenger
|
void |
loadIniParams(IniFile ini)
All EventMessengers should read their own section from the server.
|
boolean |
setSendState(int flag)
Set the send state of the messenger.
|
static final String EVENT_FILTER
static final String DISABLED
void loadIniParams(IniFile ini)
This should be done in the loadIniParams method.
The section name should be the same as the EventMessengers name. It is then up to the implementation of this method to read all the items it needs, and to set default values if any of the items it needs is missing, or if no default value can be set, the class has to take care of all the error handling for this case.
void dispose()
String[] getItems()
String getName()
int getSendState()
boolean setSendState(int flag)
String getLastError(boolean reset)
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.