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 {
10
10
11
11
static final String OPENAPIDEFINITION = "io.swagger.v3.oas.annotations.OpenAPIDefinition" ;
12
12
13
- static final String SINGLETON = "jakarta. inject.Singleton " ;
13
+ static final String COMPONENT = "io.avaje. inject.Component " ;
14
14
15
15
static final String IMPORT_PATH_TYPE_CONVERT = "import static io.avaje.http.api.PathTypeConversion.*;" ;
16
16
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ protected void addImports(boolean withSingleton) {
67
67
importTypes .add (Constants .VALIDATOR );
68
68
}
69
69
if (withSingleton ) {
70
- importTypes .add (Constants .SINGLETON );
70
+ importTypes .add (Constants .COMPONENT );
71
71
}
72
72
}
73
73
Original file line number Diff line number Diff line change 11
11
*/
12
12
class ControllerWriter extends BaseControllerWriter {
13
13
14
- private static final String AT_GENERATED = "@Generated(\" io.dinject. helidon-generator\" )" ;
14
+ private static final String AT_GENERATED = "@Generated(\" avaje- helidon-generator\" )" ;
15
15
16
16
ControllerWriter (ControllerReader reader , ProcessingContext ctx ) throws IOException {
17
17
super (reader , ctx );
@@ -60,7 +60,7 @@ private void writeRoutes(List<ControllerMethodWriter> methods) {
60
60
61
61
private void writeClassStart () {
62
62
writer .append (AT_GENERATED ).eol ();
63
- writer .append ("@Singleton " ).eol ();
63
+ writer .append ("@Component " ).eol ();
64
64
writer .append ("public class " ).append (shortName ).append ("$Route implements Service {" ).eol ().eol ();
65
65
66
66
String controllerName = "controller" ;
Original file line number Diff line number Diff line change 9
9
*/
10
10
class ControllerWriter extends BaseControllerWriter {
11
11
12
- private static final String AT_GENERATED = "@Generated(\" io.dinject. javalin-generator\" )" ;
12
+ private static final String AT_GENERATED = "@Generated(\" avaje- javalin-generator\" )" ;
13
13
private static final String API_BUILDER = "io.javalin.apibuilder.ApiBuilder" ;
14
14
15
15
ControllerWriter (ControllerReader reader , ProcessingContext ctx ) throws IOException {
@@ -45,7 +45,7 @@ private void writeForMethod(MethodReader method) {
45
45
46
46
private void writeClassStart () {
47
47
writer .append (AT_GENERATED ).eol ();
48
- writer .append ("@Singleton " ).eol ();
48
+ writer .append ("@Component " ).eol ();
49
49
writer .append ("public class " ).append (shortName ).append ("$Route implements WebRoutes {" ).eol ().eol ();
50
50
51
51
String controllerName = "controller" ;
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ private void writeForMethod(MethodReader method) {
47
47
48
48
private void writeClassStart () {
49
49
writer .append (AT_GENERATED ).eol ();
50
- writer .append ("@Singleton " ).eol ();
50
+ writer .append ("@Component " ).eol ();
51
51
writer .append ("public class " ).append (shortName ).append ("$Route implements Routing.Service {" ).eol ().eol ();
52
52
53
53
String controllerName = "controller" ;
You can’t perform that action at this time.
0 commit comments