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 String
The FQN "Injection$$Application" name.static final String
The "Application" part of the name.static final String
The 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.ApplicationCreatorResponse
createApplication
(io.helidon.inject.tools.ApplicationCreatorRequest req) Generates the source and class file forApplication
using the current classpath.static String
upperFirstChar
(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 forApplication
using the current classpath.- Specified by:
createApplication
in interfaceApplicationCreator
- Parameters:
req
- the request- Returns:
- the response for application creation
-