Module io.helidon.service.registry
Package io.helidon.service.registry
Class Lookup.BuilderBase.LookupImpl
java.lang.Object
io.helidon.service.registry.Lookup.BuilderBase.LookupImpl
- All Implemented Interfaces:
Prototype.Api
,Lookup
- Enclosing class:
Lookup.BuilderBase<BUILDER extends Lookup.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends Lookup>
Generated implementation of the prototype, can be extended by descendant prototype implementations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.service.registry.Lookup
Lookup.Builder, Lookup.BuilderBase<BUILDER extends Lookup.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends Lookup> -
Field Summary
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
LookupImpl
(Lookup.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionOptional
<GenericType<?>> boolean
int
hashCode()
boolean
default boolean
Determines whether this lookup matches the criteria for injection.default boolean
matches
(ServiceInfo serviceInfo) Determines whether this service info criteria matches the service descriptor.default boolean
matchesContracts
(Lookup criteria) Determines whether the provided criteria match just the contracts portion of the provided criteria.default boolean
matchesQualifiers
(Set<Qualifier> qualifiers) Determines whether the provided qualifiers are matched by this lookup criteria.runLevel()
scopes()
toString()
weight()
-
Constructor Details
-
LookupImpl
Create an instance providing a builder.- Parameters:
builder
- extending builder base of this prototype
-
-
Method Details
-
serviceType
-
scopes
-
qualifiers
-
contracts
-
contractType
-
runLevel
-
weight
-
includeAbstract
public boolean includeAbstract() -
dependency
-
factoryTypes
-
toString
-
equals
-
hashCode
public int hashCode() -
matches
Determines whether this lookup 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
-
matches
Determines whether this service info criteria matches the service descriptor. Matches is a looser form of equality check thanequals()
. If a service matches criteria it is generally assumed to be viable for assignability.- Parameters:
serviceInfo
- to compare with- Returns:
- true if this criteria matches the service descriptor
-
matchesContracts
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
-
matchesQualifiers
Determines whether the provided qualifiers are matched by this lookup criteria.- Parameters:
qualifiers
- qualifiers of a service- Returns:
- whether this lookup matches those qualifiers
-