File tree Expand file tree Collapse file tree 7 files changed +8
-8
lines changed
jsonb-generator/src/main/java/io/avaje/jsonb/generator Expand file tree Collapse file tree 7 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 22
33class Constants {
44
5- //static final String AT_GENERATED = "@Generated(\"io.avaje.inject.generator\")";
6- static final String META_INF_COMPONENT = "META-INF/services/io.avaje.jsonb.Jsonb$Component" ;
5+ static final String META_INF_COMPONENT = "META-INF/services/io.avaje.jsonb.Jsonb$GeneratedComponent" ;
76 static final String JSONB_WILD = "io.avaje.jsonb.*" ;
87 static final String JSONB_SPI = "io.avaje.jsonb.spi.*" ;
98 static final String JSONB = "io.avaje.jsonb.Jsonb" ;
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ private void writeClassStart() {
8888 }
8989 writer .append ("})" ).eol ();
9090
91- writer .append ("public class %s implements Jsonb.Component {" , shortName ).eol ().eol ();
91+ writer .append ("public class %s implements Jsonb.GeneratedComponent {" , shortName ).eol ().eol ();
9292 }
9393
9494
Original file line number Diff line number Diff line change 66
77 exports io .avaje .jsonb .jackson ;
88
9- provides io .avaje .jsonb .spi .IOAdapterFactory with io .avaje .jsonb .jackson .JacksonFactory ;
9+ provides io .avaje .jsonb .spi .AdapterFactory with io .avaje .jsonb .jackson .JacksonAdapterFactory ;
1010}
Original file line number Diff line number Diff line change 66
77@ Generated
88@ MetaData ({CustomerJsonAdapter .class , ContactJsonAdapter .class })
9- public class MyComponent implements Jsonb .Component {
9+ public class MyComponent implements Jsonb .GeneratedComponent {
1010
1111 @ Override
1212 public void register (Jsonb .Builder builder ) {
Original file line number Diff line number Diff line change @@ -425,7 +425,7 @@ interface AdapterBuilder {
425425 * Components register JsonAdapters Jsonb.Builder
426426 */
427427 @ FunctionalInterface
428- interface Component extends JsonbComponent {
428+ interface GeneratedComponent extends JsonbComponent {
429429
430430 /**
431431 * Register JsonAdapters with the Builder.
Original file line number Diff line number Diff line change @@ -271,7 +271,7 @@ private void registerComponents() {
271271 for (JsonbComponent next : ServiceLoader .load (JsonbComponent .class )) {
272272 next .register (this );
273273 }
274- for (Component next : ServiceLoader .load (Component .class )) {
274+ for (GeneratedComponent next : ServiceLoader .load (GeneratedComponent .class )) {
275275 next .register (this );
276276 }
277277 }
Original file line number Diff line number Diff line change 66
77 uses io .avaje .jsonb .spi .AdapterFactory ;
88 uses io .avaje .jsonb .spi .Bootstrap ;
9- uses io .avaje .jsonb .Jsonb .Component ;
9+ uses io .avaje .jsonb .JsonbComponent ;
10+ uses io .avaje .jsonb .Jsonb .GeneratedComponent ;
1011
1112}
You can’t perform that action at this time.
0 commit comments