Interface Registration

All Superinterfaces:
AutoCloseable
All Known Subinterfaces:
ServiceProviderRegistration<T,M>

public interface Registration extends AutoCloseable
Encapsulates a registration.
Author:
Paul Ferraro
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Registration
    An empty registration
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Removes this registration from the associated Registrar, after which this object is no longer functional.
    composite(Iterable<? extends Registration> registrations)
    Creates a composite registration.
  • Field Details

    • EMPTY

      static final Registration EMPTY
      An empty registration
  • Method Details

    • close

      void close()
      Removes this registration from the associated Registrar, after which this object is no longer functional.
      Specified by:
      close in interface AutoCloseable
    • composite

      static Registration composite(Iterable<? extends Registration> registrations)
      Creates a composite registration.
      Parameters:
      registrations - a collection of registrations
      Returns:
      a composite registration.