java.lang.Object
io.helidon.pico.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 classThe continuation builder. -
Method Summary
Modifier and TypeMethodDescriptionCreates a builder.static DependenciesInfocombine(DependenciesInfo parentDeps, DependenciesInfo deps) Combine the dependency info from the two sources to create a merged set of dependencies.static StringtoFieldIdentity(String elemName, Supplier<String> packageName) The field's identity and its base identity are the same since there is no arguments to handle.static StringtoMethodBaseIdentity(String elemName, int methodArgCount, ElementInfo.Access access, Supplier<String> packageName) Computes the base identity given the method name and the number of arguments to the method.static StringtoMethodIdentity(String elemName, int methodArgCount, Integer elemOffset, ElementInfo.Access access, Supplier<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
-
combine
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, ElementInfo.Access access, Supplier<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, ElementInfo.Access access, Supplier<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)
-