- All Known Implementing Classes:
ClientAppManagerImpl, RouterAppManager
public interface ClientAppManager
Notify the router of events, and provide methods for client apps to find each other.
Method Summary
All MethodsModifier and TypeMethodDescriptiongetRegisteredApp(String name) Get a registered app.voidnotify(ClientApp app, ClientAppState state, String message, Exception e) Must be called on all state transitions except from UNINITIALIZED to INITIALIZED.booleanRegister with the manager under the given name, so that other clients may find it.voidunregister(ClientApp app) Unregister with the manager.
Method Details
notify
Must be called on all state transitions except from UNINITIALIZED to INITIALIZED.- Parameters:
app- non-nullstate- non-nullmessage- may be nulle- may be null
register
Register with the manager under the given name, so that other clients may find it. Only required for apps used by other apps.- Parameters:
app- non-null- Returns:
- true if successful, false if duplicate name
unregister
Unregister with the manager. Name must be the same as that fromregister(ClientApp). Only required for apps used by other apps.- Parameters:
app- non-null
getRegisteredApp