public final class ApplicationContextAnalyzer
extends java.lang.Object
Predicate<Object>
as superinterface because it
needs to run in the same classloader as the optimizer, where the
Micronaut specific types are different from the ones loaded in
the analyzed classpath.Modifier and Type | Method and Description |
---|---|
static ApplicationContextAnalyzer |
create()
Instantiates an application context analyzer.
|
static ApplicationContextAnalyzer |
create(java.util.function.Consumer<? super io.micronaut.context.ApplicationContextBuilder> spec)
Instantiates an application context analyzer with the ability to
customize the application context.
|
java.util.function.Predicate<io.micronaut.core.annotation.AnnotationMetadataProvider> |
getAnnotationMetadataPredicate()
Returns a predicate which can be used to determine, from annotation metadata,
if a bean matches requirements.
|
io.micronaut.context.ApplicationContext |
getApplicationContext() |
java.util.Set<java.lang.String> |
getEnvironmentNames() |
public java.util.Set<java.lang.String> getEnvironmentNames()
public io.micronaut.context.ApplicationContext getApplicationContext()
public static ApplicationContextAnalyzer create()
public static ApplicationContextAnalyzer create(java.util.function.Consumer<? super io.micronaut.context.ApplicationContextBuilder> spec)
spec
- the spec to configure the application contextpublic java.util.function.Predicate<io.micronaut.core.annotation.AnnotationMetadataProvider> getAnnotationMetadataPredicate()