Module io.helidon.inject.runtime
Package io.helidon.inject.runtime
Class Dependencies.BuilderContinuation
java.lang.Object
io.helidon.inject.runtime.Dependencies.BuilderContinuation
- Enclosing class:
Dependencies
The continuation builder. This is a specialized builder used within the generated
Activator
.
It is specialized in that it validates and decorates over the normal builder, and provides a more streamlined interface.-
Method Summary
Modifier and TypeMethodDescriptionadd
(TypeName serviceTypeName, String elemName, TypeName elemTypeName, ElementKind kind, int elemArgs, AccessModifier access) Adds a new dependency item.add
(io.helidon.inject.api.InjectionPointInfo ipInfo) Adds a new dependency item.add
(Class<?> serviceType, String elemName, Class<?> elemType, ElementKind kind, int elemArgs, AccessModifier access) Adds a new dependency item.add
(Class<?> serviceType, String elemName, Class<?> elemType, ElementKind kind, AccessModifier access) Adds a new dependency item.add
(String elemName, Class<?> elemType, ElementKind kind, int elemArgs, AccessModifier access) Adds a new dependency item.add
(String elemName, Class<?> elemType, ElementKind kind, AccessModifier access) Adds a new dependency item.addQualifier
(io.helidon.inject.api.Qualifier val) Sets the optional qualifier of the injection point.addQualifier
(Class<? extends Annotation> val) Sets the optional qualifier of the injection point.io.helidon.inject.api.DependenciesInfo
build()
Commits the last dependency item, and prepares for the next.Optional
<io.helidon.inject.api.DependencyInfo> Commits the last dependency item to complete the last builder continuation.elemOffset
(int offset) Sets the element offset.Name of the injection point code, such as argument or field.Type of the injection point code, such as argument or field.Sets the flag indicating the injection point is a list.listWrapped
(boolean val) Sets the flag indicating the injection point is a list.Sets the optional qualified name of the injection point.Sets the flag indicating the injection point is anOptional
type.optionalWrapped
(boolean val) Sets the flag indicating the injection point is anOptional
type.Sets the flag indicating the injection point is a provider.providerWrapped
(boolean val) Sets the flag indicating the injection point is a provider.qualifiers
(Set<io.helidon.inject.api.Qualifier> val) Sets the optional qualifier of the injection point.staticDeclaration
(boolean val) Sets the flag indicating that the injection point is static.
-
Method Details
-
add
public Dependencies.BuilderContinuation add(String elemName, Class<?> elemType, ElementKind kind, AccessModifier access) Adds a new dependency item.- Parameters:
elemName
- the element nameelemType
- the element typekind
- the element kindaccess
- the element access- Returns:
- the builder
-
add
public Dependencies.BuilderContinuation add(String elemName, Class<?> elemType, ElementKind kind, int elemArgs, AccessModifier access) Adds a new dependency item.- Parameters:
elemName
- the element nameelemType
- the element typekind
- the element kindelemArgs
- for methods, the number of arguments the method takesaccess
- the element access- Returns:
- the builder
-
add
public Dependencies.BuilderContinuation add(Class<?> serviceType, String elemName, Class<?> elemType, ElementKind kind, AccessModifier access) Adds a new dependency item.- Parameters:
serviceType
- the service typeelemName
- the element nameelemType
- the element typekind
- the element kindaccess
- the element access- Returns:
- the builder
-
add
public Dependencies.BuilderContinuation add(Class<?> serviceType, String elemName, Class<?> elemType, ElementKind kind, int elemArgs, AccessModifier access) Adds a new dependency item.- Parameters:
serviceType
- the service typeelemName
- the element nameelemType
- the element typekind
- the element kindelemArgs
- used for methods only; the number of arguments the method acceptsaccess
- the element access- Returns:
- the builder
-
add
Adds a new dependency item.- Parameters:
ipInfo
- the injection point info already built- Returns:
- the builder
-
elemOffset
Sets the element offset.- Parameters:
offset
- the offset- Returns:
- the builder
-
listWrapped
Sets the flag indicating the injection point is a list.- Returns:
- the builder
-
listWrapped
Sets the flag indicating the injection point is a list.- Parameters:
val
- true if list type- Returns:
- the builder
-
providerWrapped
Sets the flag indicating the injection point is a provider.- Returns:
- the builder
-
providerWrapped
Sets the flag indicating the injection point is a provider.- Parameters:
val
- true if provider type- Returns:
- the builder
-
optionalWrapped
Sets the flag indicating the injection point is anOptional
type.- Returns:
- the builder
-
optionalWrapped
Sets the flag indicating the injection point is anOptional
type.- Parameters:
val
- true if list type- Returns:
- the builder
-
named
Sets the optional qualified name of the injection point.- Parameters:
val
- the name- Returns:
- the builder
-
addQualifier
Sets the optional qualifier of the injection point.- Parameters:
val
- the qualifier- Returns:
- the builder
-
addQualifier
Sets the optional qualifier of the injection point.- Parameters:
val
- the qualifier- Returns:
- the builder
-
qualifiers
Sets the optional qualifier of the injection point.- Parameters:
val
- the qualifier- Returns:
- the builder
-
staticDeclaration
Sets the flag indicating that the injection point is static.- Parameters:
val
- flag indicating if static- Returns:
- the builder
-
ipName
Name of the injection point code, such as argument or field.- Parameters:
name
- name of the field or argument (if available)- Returns:
- the builder
-
ipType
Type of the injection point code, such as argument or field.- Parameters:
type
- of the injection point, including all generic type arguments- Returns:
- the builder
-
build
public io.helidon.inject.api.DependenciesInfo build()Commits the last dependency item, and prepares for the next.- Returns:
- the builder
-
add
public Dependencies.BuilderContinuation add(TypeName serviceTypeName, String elemName, TypeName elemTypeName, ElementKind kind, int elemArgs, AccessModifier access) Adds a new dependency item.- Parameters:
serviceTypeName
- the service typeelemName
- the element nameelemTypeName
- the element typekind
- the element kindelemArgs
- used for methods only; this is the number of arguments the method acceptsaccess
- the element access- Returns:
- the builder
-
commitLastDependency
Commits the last dependency item to complete the last builder continuation.- Returns:
- any built dependencies info realized from this last commit
-