Interface ModuleComponent

All Superinterfaces:
OptionallyNamed

@Contract public interface ModuleComponent extends OptionallyNamed
Provides aggregation of services to the "containing" (jar) module.

Implementations of this contract are normally code generated, although then can be programmatically written by the developer for special cases.

Note: instances of this type are not eligible for injection.

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called by the provider implementation at bootstrapping time to bind all services / service providers to the service registry.
    default Optional<String>
    The optional name for this instance.
  • Method Details

    • configure

      void configure(ServiceBinder binder)
      Called by the provider implementation at bootstrapping time to bind all services / service providers to the service registry.
      Parameters:
      binder - the binder used to register the services to the registry
    • named

      default Optional<String> named()
      Description copied from interface: OptionallyNamed
      The optional name for this instance.
      Specified by:
      named in interface OptionallyNamed
      Returns:
      the name associated with this instance or empty if not available or known