- All Known Implementing Classes:
ServiceOverrideImpl
,
)
public interface ServiceOverride
Used to override built in services. Simply contribute a mapping from a type to an instance of that type. Anywhere
that exact type is injected, without specifying markers or other annotations, the contributed instance will be
injected, even if there is already a service that implements the interface.
In fact, this is not limited to overriding services; any object that can be injected based solely on type
can be contributed.
- Since:
- 5.1.0.0