Class ApplicationCreatorDefault

java.lang.Object
io.helidon.inject.tools.AbstractCreator
io.helidon.inject.tools.ApplicationCreatorDefault
All Implemented Interfaces:
ApplicationCreator

@Singleton public class ApplicationCreatorDefault extends AbstractCreator implements ApplicationCreator
The default implementation for ApplicationCreator.
  • Field Details

    • NAME_PREFIX

      public static final String NAME_PREFIX
      The prefix to add before the generated "Application" class name (i.e., "Injection$$" in the "Injection$$Application").
      See Also:
    • APPLICATION_NAME_SUFFIX

      public static final String APPLICATION_NAME_SUFFIX
      The "Application" part of the name.
      See Also:
    • APPLICATION_NAME

      public static final String APPLICATION_NAME
      The FQN "Injection$$Application" name.
      See Also:
  • Constructor Details

    • ApplicationCreatorDefault

      @Deprecated public ApplicationCreatorDefault()
      Deprecated.
      this is a Java ServiceLoader implementation and the constructor should not be used directly
      Service loader based constructor.
  • Method Details

    • upperFirstChar

      public static String upperFirstChar(String name)
      Will uppercase the first letter of the provided name.
      Parameters:
      name - the name
      Returns:
      the mame with the first letter capitalized
    • createApplication

      public io.helidon.inject.tools.ApplicationCreatorResponse createApplication(io.helidon.inject.tools.ApplicationCreatorRequest req)
      Generates the source and class file for Application using the current classpath.
      Specified by:
      createApplication in interface ApplicationCreator
      Parameters:
      req - the request
      Returns:
      the response for application creation