Skip to content

Commit

Permalink
Add missing service types (#234)
Browse files Browse the repository at this point in the history
This commit adds 3 new service types which optimize service loading.
It's worth noting that this commit will not influence what is done
by the build plugins, which have to replicate the list independently.
  • Loading branch information
melix authored Aug 31, 2023
1 parent 86b3069 commit a38e13a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@

import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
Expand Down Expand Up @@ -65,7 +66,8 @@ public abstract class AbstractStaticServiceLoaderSourceGenerator extends Abstrac
public static final String REJECTED_CLASSES = "serviceloading.rejected.impls";
public static final String FORCE_INCLUDE = "serviceloading.force.include.impls";

protected static final String DEFAULT_SERVICE_TYPES = "io.micronaut.context.env.PropertySourceLoader,io.micronaut.inject.BeanConfiguration,io.micronaut.inject.BeanDefinitionReference,io.micronaut.http.HttpRequestFactory,io.micronaut.http.HttpResponseFactory,io.micronaut.core.beans.BeanIntrospectionReference";
protected static final String DEFAULT_SERVICE_TYPES = "io.micronaut.context.env.PropertySourceLoader,io.micronaut.inject.BeanConfiguration,io.micronaut.inject.BeanDefinitionReference,io.micronaut.http.HttpRequestFactory,io.micronaut.http.HttpResponseFactory,io.micronaut.core.beans.BeanIntrospectionReference,io.micronaut.core.convert.TypeConverterRegistrar,io.micronaut.context.ApplicationContextConfigurer,io.micronaut.context.env.PropertyExpressionResolver";
public static final List<String> DEFAULT_SERVICE_TYPES_LIST = Arrays.stream(DEFAULT_SERVICE_TYPES.split(",")).toList();

private static final Logger LOGGER = LoggerFactory.getLogger(AbstractStaticServiceLoaderSourceGenerator.class);

Expand Down

0 comments on commit a38e13a

Please sign in to comment.