Skip to content

Commit

Permalink
"BuiltModule" got renamed to "ModuleCrate"
Browse files Browse the repository at this point in the history
  • Loading branch information
andrus committed Nov 26, 2023
1 parent 1c5a35e commit ea90722
Show file tree
Hide file tree
Showing 11 changed files with 33 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
package io.bootique.jersey.beanvalidation;

import io.bootique.BQModuleProvider;
import io.bootique.bootstrap.BuiltModule;
import io.bootique.ModuleCrate;

/**
* @since 2.0
Expand All @@ -29,8 +29,8 @@
public class JerseyBeanValidationModuleProvider implements BQModuleProvider {

@Override
public BuiltModule buildModule() {
return BuiltModule.of(new JerseyBeanValidationModule())
public ModuleCrate moduleCrate() {
return ModuleCrate.of(new JerseyBeanValidationModule())
.provider(this)
.description("Deprecated, can be replaced with 'bootique-jersey-jakarta-beanvalidation'.")
.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
package io.bootique.jersey.client.instrumented;

import io.bootique.BQModuleProvider;
import io.bootique.bootstrap.BuiltModule;
import io.bootique.ModuleCrate;
import io.bootique.jersey.client.JerseyClientModule;
import io.bootique.jersey.client.JerseyClientModuleProvider;
import io.bootique.metrics.MetricsModule;
Expand All @@ -37,8 +37,8 @@
public class JerseyClientInstrumentedModuleProvider implements BQModuleProvider {

@Override
public BuiltModule buildModule() {
return BuiltModule.of(new JerseyClientInstrumentedModule())
public ModuleCrate moduleCrate() {
return ModuleCrate.of(new JerseyClientInstrumentedModule())
.provider(this)
.description("Deprecated, can be replaced with 'bootique-jersey-jakarta-client-instrumented'.")
.overrides(JerseyClientModule.class)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
package io.bootique.jersey.client;

import io.bootique.BQModuleProvider;
import io.bootique.bootstrap.BuiltModule;
import io.bootique.ModuleCrate;

/**
* @deprecated The users are encouraged to switch to the Jakarta-based flavor
Expand All @@ -29,8 +29,8 @@
public class JerseyClientModuleProvider implements BQModuleProvider {

@Override
public BuiltModule buildModule() {
return BuiltModule.of(new JerseyClientModule())
public ModuleCrate moduleCrate() {
return ModuleCrate.of(new JerseyClientModule())
.provider(this)
.description("Deprecated, can be replaced with 'bootique-jersey-jakarta-client'.")
.config("jerseyclient", HttpClientFactoryFactory.class)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import com.fasterxml.jackson.databind.JsonSerializer;
import io.bootique.BQModuleProvider;
import io.bootique.ConfigModule;
import io.bootique.bootstrap.BuiltModule;
import io.bootique.ModuleCrate;
import io.bootique.config.ConfigurationFactory;
import io.bootique.di.Binder;
import io.bootique.di.Provides;
Expand All @@ -42,8 +42,8 @@ public static JerseyJacksonModuleExtender extend(Binder binder) {
}

@Override
public BuiltModule buildModule() {
return BuiltModule.of(this)
public ModuleCrate moduleCrate() {
return ModuleCrate.of(this)
.provider(this)
.description("Deprecated, can be replaced with 'bootique-jersey-jakarta-jackson'.")
.config(configPrefix, JerseyJacksonFactory.class)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
package io.bootique.jersey.beanvalidation;

import io.bootique.BQModuleProvider;
import io.bootique.bootstrap.BuiltModule;
import io.bootique.ModuleCrate;
import io.bootique.di.BQModule;
import io.bootique.di.Binder;

Expand All @@ -33,8 +33,8 @@ public static JerseyBeanValidationModuleExtender extend(Binder binder) {
}

@Override
public BuiltModule buildModule() {
return BuiltModule.of(this)
public ModuleCrate moduleCrate() {
return ModuleCrate.of(this)
.provider(this)
.description("Integrates bean validation to Jersey")
.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

import com.codahale.metrics.MetricRegistry;
import io.bootique.BQModuleProvider;
import io.bootique.bootstrap.BuiltModule;
import io.bootique.ModuleCrate;
import io.bootique.config.ConfigurationFactory;
import io.bootique.di.BQModule;
import io.bootique.di.Binder;
Expand All @@ -45,8 +45,8 @@ public class JerseyClientInstrumentedModule implements BQModule, BQModuleProvide
public static final MetricNaming METRIC_NAMING = MetricNaming.forModule(JerseyClientInstrumentedModule.class);

@Override
public BuiltModule buildModule() {
return BuiltModule.of(this)
public ModuleCrate moduleCrate() {
return ModuleCrate.of(this)
.description("Integrates metrics and extra logging in Jersey HTTP client")
.overrides(JerseyClientModule.class)
.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

import io.bootique.BQCoreModule;
import io.bootique.BQModuleProvider;
import io.bootique.bootstrap.BuiltModule;
import io.bootique.ModuleCrate;
import io.bootique.di.BQModule;
import io.bootique.di.Binder;
import io.bootique.jersey.client.JerseyClientModule;
Expand All @@ -33,8 +33,8 @@ public class JerseyClientJettyModule implements BQModule, BQModuleProvider {
private static final Logger LOGGER = LoggerFactory.getLogger(JerseyClientJettyModule.class);

@Override
public BuiltModule buildModule() {
return BuiltModule.of(this)
public ModuleCrate moduleCrate() {
return ModuleCrate.of(this)
.description("Integrates Jetty transport for Jersey HTTP client")
.build();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
package io.bootique.jersey.client;

import io.bootique.BQModuleProvider;
import io.bootique.bootstrap.BuiltModule;
import io.bootique.ModuleCrate;
import io.bootique.config.ConfigurationFactory;
import io.bootique.di.*;
import jakarta.ws.rs.core.Feature;
Expand All @@ -46,8 +46,8 @@ public static JerseyClientModuleExtender extend(Binder binder) {
}

@Override
public BuiltModule buildModule() {
return BuiltModule.of(this)
public ModuleCrate moduleCrate() {
return ModuleCrate.of(this)
.description("Integrates Jersey JAX-RS HTTP client.")
.config(CONFIG_PREFIX, HttpClientFactoryFactory.class)
.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

import com.fasterxml.jackson.databind.JsonSerializer;
import io.bootique.BQModuleProvider;
import io.bootique.bootstrap.BuiltModule;
import io.bootique.ModuleCrate;
import io.bootique.config.ConfigurationFactory;
import io.bootique.di.BQModule;
import io.bootique.di.Binder;
Expand All @@ -42,8 +42,8 @@ public static JerseyJacksonModuleExtender extend(Binder binder) {
}

@Override
public BuiltModule buildModule() {
return BuiltModule.of(this)
public ModuleCrate moduleCrate() {
return ModuleCrate.of(this)
.provider(this)
.description("Integrates Jackson JSON serializers to Jersey JAX-RS engine")
.config(CONFIG_PREFIX, JerseyJacksonFactory.class)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
package io.bootique.jersey;

import io.bootique.BQModuleProvider;
import io.bootique.bootstrap.BuiltModule;
import io.bootique.ModuleCrate;
import io.bootique.config.ConfigurationFactory;
import io.bootique.di.*;
import io.bootique.jersey.jaxrs.*;
Expand Down Expand Up @@ -64,8 +64,8 @@ public static JerseyModuleExtender extend(Binder binder) {
}

@Override
public BuiltModule buildModule() {
return BuiltModule.of(this)
public ModuleCrate moduleCrate() {
return ModuleCrate.of(this)
.provider(this)
.description("Integrates Jersey JAX-RS HTTP server")
.config(CONFIG_PREFIX, JerseyServletFactory.class)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
package io.bootique.jersey;

import io.bootique.BQModuleProvider;
import io.bootique.bootstrap.BuiltModule;
import io.bootique.ModuleCrate;
import io.bootique.jetty.JettyModuleProvider;

import java.util.Collection;
Expand All @@ -34,8 +34,8 @@
public class JerseyModuleProvider implements BQModuleProvider {

@Override
public BuiltModule buildModule() {
return BuiltModule.of(new JerseyModule())
public ModuleCrate moduleCrate() {
return ModuleCrate.of(new JerseyModule())
.provider(this)
.description("Deprecated, can be replaced with 'bootique-jersey-jakarta'.")
.config("jersey", JerseyServletFactory.class)
Expand Down

0 comments on commit ea90722

Please sign in to comment.