Interface ServiceDefinition<T>

  • All Superinterfaces:
    Supplier<T>

    @ParametersAreNonnullByDefault
    public interface ServiceDefinition<T>
    extends Supplier<T>
    Represents a service definition.
    • Method Detail

      • type

        @Nonnull
        Class<? extends T> type()
        Returns the service type.
        Returns:
        the service type
      • get

        @Nonnull
        T get()
        Returns an instance of the service.
        Specified by:
        get in interface Supplier<T>
        Returns:
        an instance of the service