Interface ServiceHolder<T>
- Type Parameters:
T-
- All Known Implementing Classes:
ServiceHolderImpl
public interface ServiceHolder<T>
Implementation of this class is used as a holder for service instance from
InjectionManager along with other information about the provided service.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionGets all contracts which represents the kept instance.Gets an implementation class of the instance which is kept in this service holder.An instance of the service got fromInjectionManager.intgetRank()Gets ranking of the kept instance.
-
Method Details
-
getInstance
-
getImplementationClass
-
getContractTypes
-
getRank
int getRank()Gets ranking of the kept instance.- Returns:
- instance's ranking.
-