java.lang.Object
io.helidon.inject.runtime.ServiceUtils
Public helpers around shared services usages.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanDetermines if the service provider is valid to receive injections.static StringtoDescription(Object provider) Provides aServiceProvider.description(), falling back toObject.toString()on the passed provider argument.toDescriptions(Collection<?> coll) Provides aServiceProvider.description(), falling back toObject.toString()on the passed provider argument.
-
Method Details
-
isQualifiedInjectionTarget
Determines if the service provider is valid to receive injections.- Parameters:
sp- the service provider- Returns:
- true if the service provider can receive injection
-
toDescription
Provides aServiceProvider.description(), falling back toObject.toString()on the passed provider argument.- Parameters:
provider- the provider- Returns:
- the description
-
toDescriptions
Provides aServiceProvider.description(), falling back toObject.toString()on the passed provider argument.- Parameters:
coll- the collection of providers- Returns:
- the description
-