File tree Expand file tree Collapse file tree 5 files changed +7
-7
lines changed
http-generator-core/src/main/java/io/avaje/http/generator/core
http-generator-helidon/src/main/java/io/avaje/http/generator/helidon
http-generator-javalin/src/main/java/io/avaje/http/generator/javalin
http-generator-jex/src/main/java/io/avaje/http/generator/jex Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ public class Constants {
1010
1111 static final String OPENAPIDEFINITION = "io.swagger.v3.oas.annotations.OpenAPIDefinition" ;
1212
13- static final String SINGLETON = "jakarta. inject.Singleton " ;
13+ static final String COMPONENT = "io.avaje. inject.Component " ;
1414
1515 static final String IMPORT_PATH_TYPE_CONVERT = "import static io.avaje.http.api.PathTypeConversion.*;" ;
1616
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ protected void addImports(boolean withSingleton) {
6767 importTypes .add (Constants .VALIDATOR );
6868 }
6969 if (withSingleton ) {
70- importTypes .add (Constants .SINGLETON );
70+ importTypes .add (Constants .COMPONENT );
7171 }
7272 }
7373
Original file line number Diff line number Diff line change 1111 */
1212class ControllerWriter extends BaseControllerWriter {
1313
14- private static final String AT_GENERATED = "@Generated(\" io.dinject. helidon-generator\" )" ;
14+ private static final String AT_GENERATED = "@Generated(\" avaje- helidon-generator\" )" ;
1515
1616 ControllerWriter (ControllerReader reader , ProcessingContext ctx ) throws IOException {
1717 super (reader , ctx );
@@ -60,7 +60,7 @@ private void writeRoutes(List<ControllerMethodWriter> methods) {
6060
6161 private void writeClassStart () {
6262 writer .append (AT_GENERATED ).eol ();
63- writer .append ("@Singleton " ).eol ();
63+ writer .append ("@Component " ).eol ();
6464 writer .append ("public class " ).append (shortName ).append ("$Route implements Service {" ).eol ().eol ();
6565
6666 String controllerName = "controller" ;
Original file line number Diff line number Diff line change 99 */
1010class ControllerWriter extends BaseControllerWriter {
1111
12- private static final String AT_GENERATED = "@Generated(\" io.dinject. javalin-generator\" )" ;
12+ private static final String AT_GENERATED = "@Generated(\" avaje- javalin-generator\" )" ;
1313 private static final String API_BUILDER = "io.javalin.apibuilder.ApiBuilder" ;
1414
1515 ControllerWriter (ControllerReader reader , ProcessingContext ctx ) throws IOException {
@@ -45,7 +45,7 @@ private void writeForMethod(MethodReader method) {
4545
4646 private void writeClassStart () {
4747 writer .append (AT_GENERATED ).eol ();
48- writer .append ("@Singleton " ).eol ();
48+ writer .append ("@Component " ).eol ();
4949 writer .append ("public class " ).append (shortName ).append ("$Route implements WebRoutes {" ).eol ().eol ();
5050
5151 String controllerName = "controller" ;
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ private void writeForMethod(MethodReader method) {
4747
4848 private void writeClassStart () {
4949 writer .append (AT_GENERATED ).eol ();
50- writer .append ("@Singleton " ).eol ();
50+ writer .append ("@Component " ).eol ();
5151 writer .append ("public class " ).append (shortName ).append ("$Route implements Routing.Service {" ).eol ().eol ();
5252
5353 String controllerName = "controller" ;
You can’t perform that action at this time.
0 commit comments