- All Superinterfaces:
Comparable<Weighted>
,Weighted
- All Known Subinterfaces:
ServiceDescriptor<T>
- All Known Implementing Classes:
ExistingInstanceDescriptor
,VirtualDescriptor
Service metadata.
-
Field Summary
Fields inherited from interface io.helidon.common.Weighted
DEFAULT_WEIGHT
-
Method Summary
Modifier and TypeMethodDescriptiondefault Set
<ResolvedType> Set of contracts the described service implements or provides through a factory method.default List
<Dependency> List of dependencies required by this service.Type of the service descriptor (usually generated).default Set
<ResolvedType> Set of contracts the described service implements directly.default FactoryType
What factory type is the described service.default boolean
Returnstrue
for abstract classes and interfaces, returnsfalse
by default.default TypeName
The type that implementscontracts()
.Service qualifiers.runLevel()
Run level of this service.scope()
Scope of this service.Type of the service this descriptor describes.
-
Method Details
-
serviceType
TypeName serviceType()Type of the service this descriptor describes.- Returns:
- service type
-
providedType
The type that implementscontracts()
. If the described service is not a factory, this will be theserviceType()
. If the described service is a factory, this will be the type in its factory declaration, i.e. the type it supplies, or the type of the services factory.- Returns:
- type this service provides; this may be an interface, or an implementation, the type will implement all
contracts()
of this service
-
descriptorType
TypeName descriptorType()Type of the service descriptor (usually generated).- Returns:
- descriptor type
-
contracts
Set of contracts the described service implements or provides through a factory method.- Returns:
- set of contracts
-
factoryContracts
Set of contracts the described service implements directly. If the service is not a factory, this set is empty.- Returns:
- set of factory contracts
-
dependencies
List of dependencies required by this service. These may be injection points as constructor parameters, fields, or setter methods.- Returns:
- required dependencies
-
isAbstract
default boolean isAbstract()Returnstrue
for abstract classes and interfaces, returnsfalse
by default.- Returns:
- whether this descriptor describes an abstract class or interface
-
qualifiers
Service qualifiers.- Returns:
- qualifiers
-
runLevel
Run level of this service.- Returns:
- run level
-
scope
TypeName scope()Scope of this service.- Returns:
- scope of the service
-
factoryType
What factory type is the described service. Inject services can be any of the types in theenum
.- Returns:
- factory type
-