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, resourceLoaderFields inherited from class io.micronaut.context.env.PropertySourcePropertyResolver
catalog, conversionService, log, nonGenerated, propertyPlaceholderResolver, propertySources, rawCatalogFields inherited from interface io.micronaut.core.convert.ConversionService
SHAREDFields 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
ConstructorsConstructorDescriptionAnnProcessorEnvironment(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 voidreadPropertySources(String name) Methods inherited from class io.micronaut.context.env.DefaultEnvironment
addConfigurationExcludes, addConfigurationIncludes, addConverter, addConverter, addDefaultPropertySources, addPackage, addPropertySource, addPropertySource, canConvert, close, convert, createAnnotationScanner, forBase, getActiveNames, getClassLoader, getConstantPropertySources, getPackages, getPlaceholderResolver, getPropertySourceRootName, getPropertySources, getResource, getResourceAsStream, getResources, isActive, isPresent, isRunning, readPropertySourceListFromFiles, readPropertySourceListKeyFromEnvironment, readPropertySourceLoaders, refreshAndDiff, removePropertySource, scan, scan, shouldDeduceCloudEnvironment, shouldDeduceEnvironments, start, stop, supportsPrefixMethods inherited from class io.micronaut.context.env.PropertySourcePropertyResolver
containsProperties, containsProperty, getAllProperties, getProperties, getProperty, getPropertyEntries, getPropertyPathMatches, processPropertySource, resetCaches, resolveEntriesForKey, resolveSubMap, resolveSubMap, resolveSubPropertiesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.core.convert.ConversionService
convert, convert, convert, convertRequired, convertRequired, convertRequiredMethods inherited from interface io.micronaut.context.env.Environment
addPackageMethods inherited from interface io.micronaut.context.LifeCycle
refreshMethods inherited from interface io.micronaut.core.value.PropertyResolver
containsProperties, containsProperty, get, getProperties, getProperties, getProperty, getProperty, getProperty, getProperty, getProperty, getPropertyEntries, getPropertyPathMatches, getRequiredPropertyMethods 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:
readPropertySourcesin classio.micronaut.context.env.DefaultEnvironment- Parameters:
name- The name to read property sources
-
readPropertySourceList
- Overrides:
readPropertySourceListin classio.micronaut.context.env.DefaultEnvironment- Parameters:
name- The name to resolver property sources- Returns:
- The list of property sources
-
getPropertySourceLoaders
- Specified by:
getPropertySourceLoadersin interfaceio.micronaut.context.env.Environment- Overrides:
getPropertySourceLoadersin classio.micronaut.context.env.DefaultEnvironment
-