Interface DockableFactory

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface DockableFactory
Resolves dockables by ID. Invoked only on explicit open requests, never on construction.
  • Method Summary

    Modifier and Type
    Method
    Description
    Creates the dockable for the given ID.
  • Method Details

    • create

      Optional<Dockable> create(String id)
      Creates the dockable for the given ID.
      Parameters:
      id - the requested dockable ID
      Returns:
      the dockable, whose ID must equal the requested ID, or empty if the ID is unknown