Class Module.ModuleLinker<T extends Module>

java.lang.Object
io.inverno.core.v1.Module.ModuleLinker<T>
Type Parameters:
T - the module type to link.
Direct Known Subclasses:
Base.Linker, Base.Linker, Boot.Linker, Client.Linker, Client.Linker, Jose.Linker, Ldap.Linker, Lettuce.Linker, Server.Linker, Server.Linker, Server.Linker, Vertx.Linker
Enclosing class:
Module

protected abstract static class Module.ModuleLinker<T extends Module> extends Object

The Module Linker base class.

A Module linker is used within modules implementations to link a dependent modules into the current module. A linker is only used within a module and shall never be used directly.

Since:
1.0
Author:
Jeremy Kuhn
  • Field Details

    • sockets

      protected Map<String,Object> sockets
      The socket map to be used during linking process.
  • Constructor Details

    • ModuleLinker

      public ModuleLinker(Map<String,Object> sockets)

      Creates a new Module linker with the specified socket map.

      Parameters:
      sockets - the socket map
  • Method Details

    • link

      protected abstract T link()

      Links the socket map in a new module instance and return that instance.

      Returns:
      a new linked module instance