Interface Hub.CoreRootFactory

Enclosing class:
Hub

public static interface Hub.CoreRootFactory
An interface for creating custom core root implementations.
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    default org.praxislive.core.Lookup
    extendLookup(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 of BasicCoreRoot.
      Parameters:
      accessor - private access to control the RootHub
      extensions - 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 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