java.lang.Object
io.helidon.inject.api.ServiceInfoCriteria.BuilderBase<ServiceInfoCriteria.Builder,ServiceInfoCriteria>
io.helidon.inject.api.ServiceInfoCriteria.Builder
- All Implemented Interfaces:
Prototype.Api,Prototype.Builder<ServiceInfoCriteria.Builder,,ServiceInfoCriteria> Builder<ServiceInfoCriteria.Builder,,ServiceInfoCriteria> ServiceInfoCriteria,Supplier<ServiceInfoCriteria>
- Enclosing interface:
ServiceInfoCriteria
public static class ServiceInfoCriteria.Builder
extends ServiceInfoCriteria.BuilderBase<ServiceInfoCriteria.Builder,ServiceInfoCriteria>
implements Builder<ServiceInfoCriteria.Builder,ServiceInfoCriteria>
Fluent API builder for
ServiceInfoCriteria.-
Nested Class Summary
Nested classes/interfaces inherited from class io.helidon.inject.api.ServiceInfoCriteria.BuilderBase
ServiceInfoCriteria.BuilderBase.ServiceInfoCriteriaImplNested classes/interfaces inherited from interface io.helidon.inject.api.ServiceInfoCriteria
ServiceInfoCriteria.Builder, ServiceInfoCriteria.BuilderBase<BUILDER extends ServiceInfoCriteria.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends ServiceInfoCriteria> -
Method Summary
Modifier and TypeMethodDescriptionbuild()default 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.Methods inherited from class io.helidon.inject.api.ServiceInfoCriteria.BuilderBase
activatorTypeName, activatorTypeName, activatorTypeName, addContractImplemented, addContractImplemented, addContractImplemented, addContractsImplemented, addExternalContractImplemented, addExternalContractImplemented, addExternalContractsImplemented, addQualifier, addQualifier, addQualifiers, addScopeTypeName, addScopeTypeName, addScopeTypeNames, clearActivatorTypeName, clearModuleName, clearRunLevel, clearServiceTypeName, clearWeight, contractsImplemented, contractsImplemented, externalContractsImplemented, externalContractsImplemented, from, from, includeIntercepted, includeIntercepted, moduleName, moduleName, preBuildPrototype, qualifiers, qualifiers, runLevel, runLevel, scopeTypeNames, scopeTypeNames, serviceTypeName, serviceTypeName, serviceTypeName, toString, validatePrototype, weight, weightMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.helidon.builder.api.Prototype.Builder
resolveBuilder, self
-
Method Details
-
buildPrototype
- Specified by:
buildPrototypein interfacePrototype.Builder<ServiceInfoCriteria.Builder,ServiceInfoCriteria>
-
build
- Specified by:
buildin interfaceBuilder<ServiceInfoCriteria.Builder,ServiceInfoCriteria>
-
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
-