java.lang.Object
io.helidon.inject.runtime.Dependencies
This is the class the code-generator will target that will be used at runtime for a service provider to build up its
dependencies expressed as
DependenciesInfo
.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
The continuation builder. -
Method Summary
Modifier and TypeMethodDescriptionCreates a builder.Creates a builder.static io.helidon.inject.api.DependenciesInfo
combine
(io.helidon.inject.api.DependenciesInfo parentDeps, io.helidon.inject.api.DependenciesInfo deps) Combine the dependency info from the two sources to create a merged set of dependencies.static String
toFieldIdentity
(String elemName, String packageName) The field's identity and its base identity are the same since there is no arguments to handle.static String
toMethodBaseIdentity
(String elemName, int methodArgCount, AccessModifier access, String packageName) Computes the base identity given the method name and the number of arguments to the method.static String
toMethodIdentity
(String elemName, int methodArgCount, Integer elemOffset, AccessModifier access, String packageName) Computes the method's unique identity, taking into consideration the number of args it accepts plus any optionally provided specific argument offset position.
-
Method Details
-
builder
Creates a builder.- Parameters:
serviceTypeName
- the service type name- Returns:
- the fluent builder
-
builder
Creates a builder.- Parameters:
serviceType
- the service type- Returns:
- the fluent builder
-
combine
public static io.helidon.inject.api.DependenciesInfo combine(io.helidon.inject.api.DependenciesInfo parentDeps, io.helidon.inject.api.DependenciesInfo deps) Combine the dependency info from the two sources to create a merged set of dependencies.- Parameters:
parentDeps
- the parent set of dependenciesdeps
- the child set of dependencies- Returns:
- the combined set
-
toFieldIdentity
The field's identity and its base identity are the same since there is no arguments to handle.- Parameters:
elemName
- the non-null field namepackageName
- the package name of the owning service type containing the field- Returns:
- the field identity (relative to the owning service type)
-
toMethodBaseIdentity
public static String toMethodBaseIdentity(String elemName, int methodArgCount, AccessModifier access, String packageName) Computes the base identity given the method name and the number of arguments to the method.- Parameters:
elemName
- the method namemethodArgCount
- the number of arguments to the methodaccess
- the method's accesspackageName
- the method's enclosing package name- Returns:
- the base identity (relative to the owning service type)
-
toMethodIdentity
public static String toMethodIdentity(String elemName, int methodArgCount, Integer elemOffset, AccessModifier access, String packageName) Computes the method's unique identity, taking into consideration the number of args it accepts plus any optionally provided specific argument offset position.- Parameters:
elemName
- the method namemethodArgCount
- the number of arguments to the methodelemOffset
- the optional parameter offsetaccess
- the access for the methodpackageName
- the package name of the owning service type containing the method- Returns:
- the unique identity (relative to the owning service type)
-