java.lang.Object
io.helidon.pico.tools.AbstractCreator
io.helidon.pico.tools.DefaultApplicationCreator
- All Implemented Interfaces:
ApplicationCreator
@Singleton
public class DefaultApplicationCreator
extends AbstractCreator
implements ApplicationCreator
The default implementation for
ApplicationCreator.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe FQN "Pico$$Application" name.static final StringThe "Application" part of the name.static final StringThe prefix to add before the generated "Application" class name (i.e., "Pico$$" in the "Pico$$Application").Fields inherited from class io.helidon.pico.tools.AbstractCreator
DEFAULT_SOURCE, DEFAULT_TARGET -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.this is a Java ServiceLoader implementation and the constructor should not be used directly -
Method Summary
Modifier and TypeMethodDescriptionGenerates the source and class file forApplicationusing the current classpath.static StringupperFirstChar(String name) Will uppercase the first letter of the provided name.
-
Field Details
-
NAME_PREFIX
The prefix to add before the generated "Application" class name (i.e., "Pico$$" in the "Pico$$Application").- See Also:
-
APPLICATION_NAME_SUFFIX
The "Application" part of the name.- See Also:
-
APPLICATION_NAME
The FQN "Pico$$Application" name.- See Also:
-
-
Constructor Details
-
DefaultApplicationCreator
Deprecated.this is a Java ServiceLoader implementation and the constructor should not be used directlyService loader based constructor.
-
-
Method Details
-
createApplication
Generates the source and class file forApplicationusing the current classpath.- Specified by:
createApplicationin interfaceApplicationCreator- Parameters:
req- the request- Returns:
- the response for application creation
-
upperFirstChar
Will uppercase the first letter of the provided name.- Parameters:
name- the name- Returns:
- the mame with the first letter capitalized
-