- All Known Implementing Classes:
NetworkCoreFactory
- Enclosing class:
Hub
public static interface Hub.CoreRootFactory
An interface for creating custom core root implementations.
-
Method Summary
Modifier and TypeMethodDescriptioncreateCoreRoot(Hub.Accessor accessor, List<Root> extensions) Create a core root implementation with the provided RootHub accessor and extensions.default LookupextendLookup(Lookup lookup) Provide the option for the factory to extend or alter the hub lookup.
-
Method Details
-
createCoreRoot
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
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
-