- All Superinterfaces:
Prototype.Api,ServiceInfoBasics
- All Known Implementing Classes:
ServiceInfo.BuilderBase.ServiceInfoImpl
Deprecated.
Helidon inject is deprecated and will be replaced in a future version
Describes a managed service or injection point.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classDeprecated.Fluent API builder forServiceInfo.static classServiceInfo.BuilderBase<BUILDER extends ServiceInfo.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends ServiceInfo> Deprecated.Fluent API builder base forServiceInfo. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final doubleDeprecated, for removal: This API element is subject to removal in a future version.Default weight for any internal Injection service component. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.The management agent (i.e., the activator) that is responsible for creating and activating - typically build-time created.static ServiceInfo.Builderbuilder()Deprecated.Create a new fluent API builder to customize configuration.static ServiceInfo.Builderbuilder(ServiceInfo instance) Deprecated.Create a new fluent API builder from an existing instance.static ServiceInfo.Builderbuilder(ServiceInfoBasics prototype) Deprecated.Create a builder of service info from its basics counterpart.Deprecated, for removal: This API element is subject to removal in a future version.The managed services advertised types (i.e., typically its interfaces).static ServiceInfocreate()Deprecated.Create a new instance with default values.Deprecated, for removal: This API element is subject to removal in a future version.The optionalRunLevelascribed to the service.Deprecated, for removal: This API element is subject to removal in a future version.Weight that was declared on the type itself.Deprecated, for removal: This API element is subject to removal in a future version.The managed services external contracts / interfaces.default booleanmatches(ServiceInfoCriteria criteria) Deprecated, for removal: This API element is subject to removal in a future version.Determines whether this service info matches the criteria for injection.Deprecated, for removal: This API element is subject to removal in a future version.The name of the ascribed module, if known.Deprecated, for removal: This API element is subject to removal in a future version.The managed service assigned Qualifier's.default intDeprecated, for removal: This API element is subject to removal in a future version.The realized run level will use the default run level if no run level was specified directly.default doubleDeprecated, for removal: This API element is subject to removal in a future version.The realized weight will useWeighted.DEFAULT_WEIGHTif no weight was specified directly.Deprecated, for removal: This API element is subject to removal in a future version.The managed service assigned Scope's.Deprecated, for removal: This API element is subject to removal in a future version.The managed service implementationClass.
-
Field Details
-
DEFAULT_INJECT_WEIGHT
static final double DEFAULT_INJECT_WEIGHTDeprecated, for removal: This API element is subject to removal in a future version.Default 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:
-
-
Method Details
-
builder
Deprecated.Create a new fluent API builder to customize configuration.- Returns:
- a new builder
-
builder
Deprecated.Create a new fluent API builder from an existing instance.- Parameters:
instance- an existing instance used as a base for the builder- Returns:
- a builder based on an instance
-
create
Deprecated.Create a new instance with default values.- Returns:
- a new instance
-
builder
Deprecated.Create a builder of service info from its basics counterpart.- Parameters:
prototype- instance to copy- Returns:
- a new builder with data from prototype
-
externalContractsImplemented
Deprecated, for removal: This API element is subject to removal in a future version.The managed services external contracts / interfaces. These should also be contained withincontractsImplemented(). External contracts are from other modules other than the module containing the implementation typically.- Returns:
- the service external contracts implemented
- See Also:
-
activatorTypeName
Deprecated, for removal: This API element is subject to removal in a future version.The management agent (i.e., the activator) that is responsible for creating and activating - typically build-time created.- Returns:
- the activator type name
-
moduleName
Deprecated, for removal: This API element is subject to removal in a future version.The name of the ascribed module, if known.- Returns:
- the module name
-
matches
Deprecated, for removal: This API element is subject to removal in a future version.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()Deprecated, for removal: This API element is subject to removal in a future version.The managed service implementationClass.- Returns:
- the service type name
-
scopeTypeNames
Deprecated, for removal: This API element is subject to removal in a future version.The managed service assigned Scope's.- Returns:
- the service scope type name
-
qualifiers
Deprecated, for removal: This API element is subject to removal in a future version.The managed service assigned Qualifier's.- Returns:
- the service qualifiers
-
contractsImplemented
Deprecated, for removal: This API element is subject to removal in a future version.The managed services advertised types (i.e., typically its interfaces).- Returns:
- the service contracts implemented
- See Also:
-
declaredRunLevel
Deprecated, for removal: This API element is subject to removal in a future version.The optionalRunLevelascribed to the service.- Returns:
- the service's run level
- See Also:
-
realizedRunLevel
default int realizedRunLevel()Deprecated, for removal: This API element is subject to removal in a future version.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
Deprecated, for removal: This API element is subject to removal in a future version.Weight that was declared on the type itself.- Returns:
- the declared weight
- See Also:
-
realizedWeight
default double realizedWeight()Deprecated, for removal: This API element is subject to removal in a future version.The realized weight will useWeighted.DEFAULT_WEIGHTif no weight was specified directly.- Returns:
- the realized weight
- See Also:
-