All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.jbock.simple.Provider Maven / Gradle / Ivy

There is a newer version: 1.024
Show newest version
package io.jbock.simple;

/**
 * Provides instances of {@code T}.
 * For any type {@code T} that can be injected, you can also inject {@code Provider}.
 * Compared to injecting {@code T} directly, injecting {@code Provider} enables:
 * 
 * 
    *
  • retrieving multiple instances.
  • *
  • lazy or optional retrieval of an instance.
  • *
*/ public interface Provider { /** * Provides a fully-constructed and injected instance of {@code T}. */ T get(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy