Annotation Interface Module.Socket

Enclosing class:
Module

@Retention(CLASS) @Target(PARAMETER) protected static @interface Module.Socket

Provides socket information to the Inverno compiler.

These information are necessary for the compiler to be able to load component modules in a module while preserving socket names and preventing dependency cycles.

Author:
Jeremy Kuhn
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Indicates the name of the socket, defaults to the name of the socket class.
    Indicates the name of the beans in the module a socket bean is wired to.
  • Element Details

    • name

      String name

      Indicates the name of the socket, defaults to the name of the socket class.

      Returns:
      A name
      Default:
      ""
    • wiredTo

      String[] wiredTo

      Indicates the name of the beans in the module a socket bean is wired to.

      Returns:
      A list of bean names
      Default:
      {}