- Enclosing class:
Hub
public static interface Hub.CoreRootFactory
An interface for creating custom core root implementations.
-
Method Summary
Modifier and TypeMethodDescriptionorg.praxislive.core.RootcreateCoreRoot(Hub.Accessor accessor, List<org.praxislive.core.Root> extensions) Create a core root implementation with the provided RootHub accessor and extensions.default org.praxislive.core.LookupextendLookup(org.praxislive.core.Lookup lookup) Provide the option for the factory to extend or alter the hub lookup.
-
Method Details
-
createCoreRoot
org.praxislive.core.Root createCoreRoot(Hub.Accessor accessor, List<org.praxislive.core.Root> extensions) Create a core root implementation with the provided RootHub accessor and extensions. The return type of this method will usually be a subclass ofBasicCoreRoot.- Parameters:
accessor- private access to control the RootHubextensions- extensions to install- Returns:
- core root implementation
-
extendLookup
default org.praxislive.core.Lookup extendLookup(org.praxislive.core.Lookup lookup) Provide the option for the factory to extend or alter the hub lookup. This should usually be done by passing the provided lookup in as parent toLookup.of(org.praxislive.core.Lookup, java.lang.Object...). The default implementation returns the provided lookup unchanged.- Parameters:
lookup- existing lookup- Returns:
- extended lookup
-