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 Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe FQN "Injection$$Application" name.static final StringThe "Application" part of the name.static final StringThe prefix to add before the generated "Application" class name (i.e., "Injection$$" in the "Injection$$Application").Fields inherited from class io.helidon.inject.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 TypeMethodDescriptionio.helidon.inject.tools.ApplicationCreatorResponsecreateApplication(io.helidon.inject.tools.ApplicationCreatorRequest req) Generates 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., "Injection$$" in the "Injection$$Application").- See Also:
-
APPLICATION_NAME_SUFFIX
The "Application" part of the name.- See Also:
-
APPLICATION_NAME
The FQN "Injection$$Application" name.- See Also:
-
-
Constructor Details
-
ApplicationCreatorDefault
Deprecated.this is a Java ServiceLoader implementation and the constructor should not be used directlyService loader based constructor.
-
-
Method Details
-
upperFirstChar
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 forApplicationusing the current classpath.- Specified by:
createApplicationin interfaceApplicationCreator- Parameters:
req- the request- Returns:
- the response for application creation
-