Package net.i2p.router.app

Interface for classes to be started and stopped via clients.config. Classes implementing the RouterApp 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
  • Interface Summary 
    Interface Description
    RouterApp
    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(RouterContext context, ClientAppManager listener, String[] args) {...} All parameters are non-null.