Class InstanceName__ServiceDescriptor
java.lang.Object
io.helidon.service.registry.InstanceName__ServiceDescriptor
- All Implemented Interfaces:
Weighted, ServiceDescriptor<String>, ServiceInfo, Comparable<Weighted>
Service descriptor to enable injection of String name of a
Service.PerInstance
service (using qualifier Service.InstanceName).
Not intended for direct use by users, implementation detail of the service registry, must be public, as it may be used in generated binding.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final InstanceName__ServiceDescriptorSingleton instance to be referenced when building bindings.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).What factory type is the described service.Type of the service this descriptor describes.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ServiceDescriptor
inject, instantiate, postConstruct, preDestroy, scope, typeSetModifier and TypeMethodDescriptiondefault voidinject(DependencyContext ctx, InterceptionMetadata interceptionMetadata, Set<String> injected, String instance) Inject fields and methods.default Objectinstantiate(DependencyContext ctx, InterceptionMetadata interceptionMetadata) Create a new service instance.default voidpostConstruct(String instance) InvokeService.PostConstructannotated method(s).default voidpreDestroy(String 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, isAbstract, providedType, qualifiers, 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 booleanReturnstruefor abstract classes and interfaces, returnsfalseby default.default TypeNameThe type that implementsServiceInfo.contracts().Service qualifiers.runLevel()Run level of this service.
-
Field Details
-
INSTANCE
Singleton instance to be referenced when building bindings.
-
-
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
-
factoryType
Description copied from interface:ServiceInfoWhat factory type is the described service. Inject services can be any of the types in theenum.- Specified by:
factoryTypein interfaceServiceInfo- Returns:
- factory type
-