Package net.i2p.app
package net.i2p.app
Interfaces for classes to be started and stopped via clients.config. Classes implementing the ClientApp interface will be controlled with the that interface instead of being started with main().
The benefits for clients using this interface:
- Get the current context via the constructor
- Complete life cycle management by the router
- Avoid the need for static references
- Ability to find other clients without using static references
-
ClassDescriptionIf 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.Notify the router of events, and provide methods for client apps to find each other.A simple ClientAppManager that supports register/unregister only, so that client apps may find each other in AppContext.Status of a client application.Service to put links on the console.A service to send messages to users.