Module io.helidon.inject.api
Package io.helidon.inject.api
Class ServiceInfoBasics.BuilderBase.ServiceInfoBasicsImpl
java.lang.Object
io.helidon.inject.api.ServiceInfoBasics.BuilderBase.ServiceInfoBasicsImpl
- All Implemented Interfaces:
Prototype.Api,ServiceInfoBasics
- Direct Known Subclasses:
ServiceInfo.BuilderBase.ServiceInfoImpl
- Enclosing class:
ServiceInfoBasics.BuilderBase<BUILDER extends ServiceInfoBasics.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends ServiceInfoBasics>
protected static class ServiceInfoBasics.BuilderBase.ServiceInfoBasicsImpl
extends Object
implements ServiceInfoBasics
Generated implementation of the prototype, can be extended by descendant prototype implementations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.inject.api.ServiceInfoBasics
ServiceInfoBasics.Builder, ServiceInfoBasics.BuilderBase<BUILDER extends ServiceInfoBasics.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends ServiceInfoBasics> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final doubleDefault weight for any internal Injection service component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedServiceInfoBasicsImpl(ServiceInfoBasics.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()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.toString()
-
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:
-
-
Constructor Details
-
ServiceInfoBasicsImpl
Create an instance providing a builder.- Parameters:
builder- extending builder base of this prototype
-
-
Method Details
-
serviceTypeName
-
scopeTypeNames
-
qualifiers
-
contractsImplemented
-
declaredRunLevel
-
declaredWeight
-
toString
-
equals
-
hashCode
public int hashCode() -
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:
-
realizedWeight
default double realizedWeight()The realized weight will useWeighted.DEFAULT_WEIGHTif no weight was specified directly.- Returns:
- the realized weight
- See Also:
-