Module io.helidon.inject.api
Package io.helidon.inject.api
Class ServiceInfo.BuilderBase.ServiceInfoImpl
java.lang.Object
io.helidon.inject.api.ServiceInfoBasics.BuilderBase.ServiceInfoBasicsImpl
io.helidon.inject.api.ServiceInfo.BuilderBase.ServiceInfoImpl
- All Implemented Interfaces:
Prototype.Api,ServiceInfo,ServiceInfoBasics
- Enclosing class:
ServiceInfo.BuilderBase<BUILDER extends ServiceInfo.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends ServiceInfo>
protected static class ServiceInfo.BuilderBase.ServiceInfoImpl
extends ServiceInfoBasics.BuilderBase.ServiceInfoBasicsImpl
implements ServiceInfo
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.ServiceInfo
ServiceInfo.Builder, ServiceInfo.BuilderBase<BUILDER extends ServiceInfo.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends ServiceInfo> 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
ConstructorsModifierConstructorDescriptionprotectedServiceInfoImpl(ServiceInfo.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionThe managed services advertised types (i.e., typically its interfaces).The optionalRunLevelascribed to the service.Weight that was declared on the type itself.booleaninthashCode()default booleanmatches(ServiceInfoCriteria criteria) Determines whether this service info matches the criteria for injection.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.toString()Methods inherited from class io.helidon.inject.api.ServiceInfoBasics.BuilderBase.ServiceInfoBasicsImpl
contractsImplemented, declaredRunLevel, declaredWeight, qualifiers, scopeTypeNames, serviceTypeName
-
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
-
ServiceInfoImpl
Create an instance providing a builder.- Parameters:
builder- extending builder base of this prototype
-
-
Method Details
-
externalContractsImplemented
-
activatorTypeName
-
moduleName
-
toString
- Overrides:
toStringin classServiceInfoBasics.BuilderBase.ServiceInfoBasicsImpl
-
equals
- Overrides:
equalsin classServiceInfoBasics.BuilderBase.ServiceInfoBasicsImpl
-
hashCode
public int hashCode()- Overrides:
hashCodein classServiceInfoBasics.BuilderBase.ServiceInfoBasicsImpl
-
matches
Determines whether this service info matches the criteria for injection. Matches is a looser form of equality check thanequals(). If a service matches criteria it is generally assumed to be viable for assignability.- Parameters:
criteria- the criteria to compare against- Returns:
- true if the criteria provided matches this 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:
-