java.lang.Object
org.praxislive.hub.Hub.Accessor
- Enclosing class:
Hub
Provides access to control of the RootHub. An instance of this class is
passed to the core root factory to provide private access to the RootHub
for the core root implementation.
-
Method Summary
Modifier and TypeMethodDescriptionorg.praxislive.core.Root.ControllerGet the root controller with the provided id, if one is registered.org.praxislive.core.RootHubGet theRootHubimplementation.String[]Get a list of the registered root IDs.booleanregisterRootController(String id, org.praxislive.core.Root.Controller controller) Register the root controller under the provided id.voidregisterService(Class<? extends org.praxislive.core.services.Service> service, org.praxislive.core.ComponentAddress provider) Register a service provider.org.praxislive.core.Root.ControllerUnregister the root controller with the provided id.
-
Method Details
-
registerRootController
Register the root controller under the provided id. This method does not start the root.- Parameters:
id- root idcontroller- root controller- Returns:
- true on success
-
unregisterRootController
Unregister the root controller with the provided id. The registered controller is returned, if it exists. This method does not terminate the root.- Parameters:
id- root id- Returns:
- controller or null
-
getRootController
Get the root controller with the provided id, if one is registered.- Parameters:
id- root id- Returns:
- controller or null
-
getRootIDs
Get a list of the registered root IDs.- Returns:
- registered root IDs
-
registerService
public void registerService(Class<? extends org.praxislive.core.services.Service> service, org.praxislive.core.ComponentAddress provider) Register a service provider.- Parameters:
service- implemented serviceprovider- service address
-
getRootHub
public org.praxislive.core.RootHub getRootHub()Get theRootHubimplementation.- Returns:
- root hub
-