io.jbock.simple.Provider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of simple-component Show documentation
Show all versions of simple-component Show documentation
annotations for simple-component
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();
}