Interface Hub.CoreRootFactory

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 Type
    Method
    Description
    createCoreRoot(Hub.Accessor accessor, List<Root> extensions)
    Create a core root implementation with the provided RootHub accessor and extensions.
    default Lookup
    Provide the option for the factory to extend or alter the hub lookup.
  • Method Details

    • createCoreRoot

      Root createCoreRoot(Hub.Accessor accessor, List<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 of BasicCoreRoot.
      Parameters:
      accessor - private access to control the RootHub
      extensions - extensions to install
      Returns:
      core root implementation
    • extendLookup

      default Lookup extendLookup(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 to Lookup.of(org.praxislive.core.Lookup, java.lang.Object...). The default implementation returns the provided lookup unchanged.
      Parameters:
      lookup - existing lookup
      Returns:
      extended lookup