|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ClientApp
If a class started via clients.config implements this interface, it will be used to manage the client, instead of starting with main() Clients implementing this interface MUST provide the following constructor: public MyClientApp(I2PAppContext context, ClientAppManager listener, String[] args) {...} All parameters are non-null. This constructor is for instantiation only. Do not take a long time. Do not block. Never start threads or processes in it. The ClientAppState of the returned object must be INITIALIZED, or else throw something. The startup() method will be called next. Never ever hold a static reference to the context or anything derived from it.
Method Summary | |
---|---|
String |
getDisplayName()
The dislplay name of the ClientApp, used in user interfaces. |
String |
getName()
The generic name of the ClientApp, used for registration, e.g. |
ClientAppState |
getState()
The current state of the ClientApp. |
void |
shutdown(String[] args)
Do not take a long time. |
void |
startup()
Do not take a long time. |
Method Detail |
---|
void startup() throws Throwable
Throwable
void shutdown(String[] args) throws Throwable
Throwable
ClientAppState getState()
String getName()
String getDisplayName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |