- All Superinterfaces:
Prototype.Api
- All Known Subinterfaces:
ServiceInfo,io.helidon.inject.api.ServiceInfoBlueprint
- All Known Implementing Classes:
ServiceInfo.BuilderBase.ServiceInfoImpl,ServiceInfoBasics.BuilderBase.ServiceInfoBasicsImpl
Basic service info that describes a service provider type.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFluent API builder forServiceInfoBasics.static classServiceInfoBasics.BuilderBase<BUILDER extends ServiceInfoBasics.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends ServiceInfoBasics> Fluent API builder base forServiceInfoBasics. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final doubleDefault weight for any internal Injection service component. -
Method Summary
Modifier and TypeMethodDescriptionstatic ServiceInfoBasics.Builderbuilder()Create a new fluent API builder to customize configuration.static ServiceInfoBasics.Builderbuilder(ServiceInfoBasics instance) Create a new fluent API builder from an existing instance.The managed services advertised types (i.e., typically its interfaces).static ServiceInfoBasicscreate()Create a new instance with default values.The optionalRunLevelascribed to the service.Weight that was declared on the type itself.The managed service assigned Qualifier's.default intThe realized run level will use the default run level if no run level was specified directly.default doubleThe realized weight will useWeighted.DEFAULT_WEIGHTif no weight was specified directly.The managed service assigned Scope's.The managed service implementationClass.
-
Field Details
-
DEFAULT_INJECT_WEIGHT
static final double DEFAULT_INJECT_WEIGHTDefault weight for any internal Injection service component. It is defined to beWeighted.DEFAULT_WEIGHT- 1in order to allow any other service implementation to naturally have a higher weight (since it will use theDEFAULT_WEIGHTunless explicitly overridden.- See Also:
-
-
Method Details
-
builder
Create a new fluent API builder to customize configuration.- Returns:
- a new builder
-
builder
Create a new fluent API builder from an existing instance.- Parameters:
instance- an existing instance used as a base for the builder- Returns:
- a builder based on an instance
-
create
Create a new instance with default values.- Returns:
- a new instance
-
serviceTypeName
TypeName serviceTypeName()The managed service implementationClass.- Returns:
- the service type name
-
scopeTypeNames
The managed service assigned Scope's.- Returns:
- the service scope type name
-
qualifiers
The managed service assigned Qualifier's.- Returns:
- the service qualifiers
-
contractsImplemented
The managed services advertised types (i.e., typically its interfaces).- Returns:
- the service contracts implemented
- See Also:
-
declaredRunLevel
The optionalRunLevelascribed to the service.- Returns:
- the service's run level
- See Also:
-
realizedRunLevel
default int realizedRunLevel()The realized run level will use the default run level if no run level was specified directly.- Returns:
- the realized run level
- See Also:
-
declaredWeight
Weight that was declared on the type itself.- Returns:
- the declared weight
- See Also:
-
realizedWeight
default double realizedWeight()The realized weight will useWeighted.DEFAULT_WEIGHTif no weight was specified directly.- Returns:
- the realized weight
- See Also:
-