Module io.helidon.inject.api
Package io.helidon.inject.api
Class ServiceInfoCriteria.BuilderBase.ServiceInfoCriteriaImpl
java.lang.Object
io.helidon.inject.api.ServiceInfoCriteria.BuilderBase.ServiceInfoCriteriaImpl
- All Implemented Interfaces:
Prototype.Api,ServiceInfoCriteria
- Enclosing class:
ServiceInfoCriteria.BuilderBase<BUILDER extends ServiceInfoCriteria.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends ServiceInfoCriteria>
protected static class ServiceInfoCriteria.BuilderBase.ServiceInfoCriteriaImpl
extends Object
implements ServiceInfoCriteria
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.ServiceInfoCriteria
ServiceInfoCriteria.Builder, ServiceInfoCriteria.BuilderBase<BUILDER extends ServiceInfoCriteria.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends ServiceInfoCriteria> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedServiceInfoCriteriaImpl(ServiceInfoCriteria.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()booleandefault booleanmatches(io.helidon.inject.api.ServiceInfoCriteriaBlueprint criteria) Determines whether this service info matches the criteria for injection.default booleanmatchesContracts(io.helidon.inject.api.ServiceInfoCriteriaBlueprint criteria) Determines whether the provided criteria match just the contracts portion of the provided criteria.runLevel()toString()weight()
-
Constructor Details
-
ServiceInfoCriteriaImpl
Create an instance providing a builder.- Parameters:
builder- extending builder base of this prototype
-
-
Method Details
-
serviceTypeName
-
scopeTypeNames
-
qualifiers
-
contractsImplemented
-
runLevel
-
weight
-
externalContractsImplemented
-
activatorTypeName
-
moduleName
-
includeIntercepted
public boolean includeIntercepted() -
toString
-
equals
-
hashCode
public int hashCode() -
matches
default boolean matches(io.helidon.inject.api.ServiceInfoCriteriaBlueprint criteria) 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
-
matchesContracts
default boolean matchesContracts(io.helidon.inject.api.ServiceInfoCriteriaBlueprint criteria) Determines whether the provided criteria match just the contracts portion of the provided criteria. Note that it is expected any external contracts have been consolidated into the regular contract section.- Parameters:
criteria- the criteria to compare against- Returns:
- true if the criteria provided matches this instance from only the contracts point of view
-