Package io.micronaut.openapi.visitor
Class AnnProcessorEnvironment
java.lang.Object
io.micronaut.context.env.PropertySourcePropertyResolver
io.micronaut.context.env.DefaultEnvironment
io.micronaut.openapi.visitor.AnnProcessorEnvironment
- All Implemented Interfaces:
io.micronaut.context.env.Environment
,io.micronaut.context.LifeCycle<io.micronaut.context.env.Environment>
,io.micronaut.core.convert.ConversionService
,io.micronaut.core.convert.MutableConversionService
,io.micronaut.core.io.ResourceLoader
,io.micronaut.core.value.PropertyResolver
,io.micronaut.core.value.ValueResolver<String>
,Closeable
,AutoCloseable
public class AnnProcessorEnvironment
extends io.micronaut.context.env.DefaultEnvironment
Specific environment for annotation processing level. Solve problem with access to resources
from project classpath.
- Since:
- 4.5.0
-
Nested Class Summary
Nested classes/interfaces inherited from class io.micronaut.context.env.PropertySourcePropertyResolver
io.micronaut.context.env.PropertySourcePropertyResolver.PropertyCatalog
-
Field Summary
Fields inherited from class io.micronaut.context.env.DefaultEnvironment
mutableConversionService, refreshablePropertySources, resourceLoader
Fields inherited from class io.micronaut.context.env.PropertySourcePropertyResolver
catalog, conversionService, log, nonGenerated, propertyPlaceholderResolver, propertySources, rawCatalog
Fields inherited from interface io.micronaut.core.convert.ConversionService
SHARED
Fields inherited from interface io.micronaut.context.env.Environment
AMAZON_EC2, ANDROID, AZURE, BARE_METAL, BOOTSTRAP_CONTEXT_PROPERTY, BOOTSTRAP_NAME, BOOTSTRAP_NAME_PROPERTY, CLI, CLOUD, CLOUD_FOUNDRY, CLOUD_PLATFORM_PROPERTY, DEDUCE_CLOUD_ENVIRONMENT_ENV, DEDUCE_CLOUD_ENVIRONMENT_PROPERTY, DEDUCE_ENVIRONMENT_ENV, DEDUCE_ENVIRONMENT_PROPERTY, DEFAULT_NAME, DEVELOPMENT, DIGITAL_OCEAN, ENVIRONMENTS_ENV, ENVIRONMENTS_PROPERTY, FUNCTION, GAE, GOOGLE_COMPUTE, HEROKU, HOSTNAME, IBM, KUBERNETES, MICRONAUT, ORACLE_CLOUD, PROPERTY_SOURCES_KEY, TEST
-
Constructor Summary
ConstructorDescriptionAnnProcessorEnvironment
(io.micronaut.context.ApplicationContextConfiguration configuration, io.micronaut.inject.visitor.VisitorContext context) Construct a new environment for the given configuration. -
Method Summary
Modifier and TypeMethodDescriptionCollection<io.micronaut.context.env.PropertySourceLoader>
protected List<io.micronaut.context.env.PropertySource>
readPropertySourceList
(String name) protected void
readPropertySources
(String name) Methods inherited from class io.micronaut.context.env.DefaultEnvironment
addConfigurationExcludes, addConfigurationIncludes, addConverter, addConverter, addDefaultPropertySources, addPackage, addPropertySource, addPropertySource, canConvert, close, convert, convert, createAnnotationScanner, forBase, getActiveNames, getClassLoader, getConstantPropertySources, getMutableConversionService, getPackages, getPlaceholderResolver, getPropertySourceRootName, getPropertySources, getResource, getResourceAsStream, getResources, isActive, isPresent, isRunning, readPropertySourceListFromFiles, readPropertySourceListKeyFromEnvironment, readPropertySourceLoaders, refreshAndDiff, removePropertySource, scan, scan, shouldDeduceCloudEnvironment, shouldDeduceEnvironments, start, stop, supportsPrefix
Methods inherited from class io.micronaut.context.env.PropertySourcePropertyResolver
containsProperties, containsProperty, getAllProperties, getProperties, getProperty, getPropertyEntries, getPropertyPathMatches, processPropertySource, resetCaches, resolveEntriesForKey, resolveSubMap, resolveSubMap, resolveSubProperties
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.core.convert.ConversionService
convert, convert, convert, convert, convertRequired, convertRequired, convertRequired
Methods inherited from interface io.micronaut.context.env.Environment
addPackage
Methods inherited from interface io.micronaut.context.LifeCycle
refresh
Methods inherited from interface io.micronaut.core.value.PropertyResolver
containsProperties, containsProperty, get, getProperties, getProperties, getProperty, getProperty, getProperty, getProperty, getProperty, getPropertyEntries, getPropertyPathMatches, getRequiredProperty
Methods inherited from interface io.micronaut.core.value.ValueResolver
get, get, get
-
Constructor Details
-
AnnProcessorEnvironment
public AnnProcessorEnvironment(io.micronaut.context.ApplicationContextConfiguration configuration, io.micronaut.inject.visitor.VisitorContext context) Construct a new environment for the given configuration.- Parameters:
configuration
- The configurationcontext
- visitor context
-
-
Method Details
-
readPropertySources
- Overrides:
readPropertySources
in classio.micronaut.context.env.DefaultEnvironment
- Parameters:
name
- The name to read property sources
-
readPropertySourceList
- Overrides:
readPropertySourceList
in classio.micronaut.context.env.DefaultEnvironment
- Parameters:
name
- The name to resolver property sources- Returns:
- The list of property sources
-
getPropertySourceLoaders
- Specified by:
getPropertySourceLoaders
in interfaceio.micronaut.context.env.Environment
- Overrides:
getPropertySourceLoaders
in classio.micronaut.context.env.DefaultEnvironment
-