Class VirtualDescriptor
java.lang.Object
io.helidon.service.registry.VirtualDescriptor
- All Implemented Interfaces:
Weighted, ServiceDescriptor<Object>, ServiceInfo, Comparable<Weighted>
A virtual descriptor is not backed by a generated descriptor.
-
Field Summary
Fields inherited from interface Weighted
DEFAULT_WEIGHTModifier and TypeFieldDescriptionstatic final doubleDefault weight for any weighted component (whether it implements this interface or usesWeightannotation). -
Method Summary
Modifier and TypeMethodDescriptionSet of contracts the described service implements or provides through a factory method.Type of the service descriptor (usually generated).booleaninthashCode()Service qualifiers.Type of the service this descriptor describes.toString()doubleweight()Weight of this class (maybe because it is defined dynamically, so it cannot be defined by an annotation).Methods inherited from interface ServiceDescriptor
inject, instantiate, postConstruct, preDestroy, scope, typeSetModifier and TypeMethodDescriptiondefault voidinject(DependencyContext ctx, InterceptionMetadata interceptionMetadata, Set<String> injected, Object instance) Inject fields and methods.default Objectinstantiate(DependencyContext ctx, InterceptionMetadata interceptionMetadata) Create a new service instance.default voidpostConstruct(Object instance) InvokeService.PostConstructannotated method(s).default voidpreDestroy(Object instance) InvokeService.PreDestroyannotated method(s).default TypeNamescope()Scope of this service.default Set<ResolvedType> typeSet(ResolvedType contract) Provide a mapping of a contracts of this service to its contract type set.Methods inherited from interface ServiceInfo
dependencies, factoryContracts, factoryType, isAbstract, providedType, runLevelModifier and TypeMethodDescriptiondefault List<Dependency> List of dependencies required by this service.default Set<ResolvedType> Set of contracts that identify the factory provider itself.default FactoryTypeWhat factory type is the described service.default booleanReturnstruefor abstract classes and interfaces, returnsfalseby default.default TypeNameThe type that implementsServiceInfo.contracts().runLevel()Run level of this service.
-
Method Details
-
serviceType
Description copied from interface:ServiceInfoType of the service this descriptor describes.- Specified by:
serviceTypein interfaceServiceInfo- Returns:
- service type
-
descriptorType
Description copied from interface:ServiceInfoType of the service descriptor (usually generated).- Specified by:
descriptorTypein interfaceServiceInfo- Returns:
- descriptor type
-
contracts
Description copied from interface:ServiceInfoSet of contracts the described service implements or provides through a factory method.- Specified by:
contractsin interfaceServiceInfo- Returns:
- set of contracts
-
weight
public double weight()Description copied from interface:WeightedWeight of this class (maybe because it is defined dynamically, so it cannot be defined by an annotation). If not dynamic, you can use theWeightannotation rather than implementing this interface as long as it is supported by the library using thisWeighted. -
qualifiers
Description copied from interface:ServiceInfoService qualifiers.- Specified by:
qualifiersin interfaceServiceInfo- Returns:
- qualifiers
-
hashCode
-
equals
-
toString
-