Class Dependencies

java.lang.Object
io.helidon.inject.runtime.Dependencies

public class Dependencies extends Object
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.
  • Method Details

    • builder

      public static Dependencies.BuilderContinuation builder(TypeName serviceTypeName)
      Creates a builder.
      Parameters:
      serviceTypeName - the service type name
      Returns:
      the fluent builder
    • builder

      public static Dependencies.BuilderContinuation builder(Class<?> serviceType)
      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 dependencies
      deps - the child set of dependencies
      Returns:
      the combined set
    • toFieldIdentity

      public 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.
      Parameters:
      elemName - the non-null field name
      packageName - 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 name
      methodArgCount - the number of arguments to the method
      access - the method's access
      packageName - 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 name
      methodArgCount - the number of arguments to the method
      elemOffset - the optional parameter offset
      access - the access for the method
      packageName - the package name of the owning service type containing the method
      Returns:
      the unique identity (relative to the owning service type)