Class 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.context.env.Environment>, io.micronaut.core.io.ResourceLoader, io.micronaut.core.value.PropertyResolver, io.micronaut.core.value.ValueResolver<java.lang.String>, java.io.Closeable, java.lang.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

        refreshablePropertySources, resourceLoader
      • Fields inherited from class io.micronaut.context.env.PropertySourcePropertyResolver

        catalog, conversionService, 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_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

      Constructors 
      Constructor Description
      AnnProcessorEnvironment​(io.micronaut.context.ApplicationContextConfiguration configuration, io.micronaut.inject.visitor.VisitorContext context)
      Construct a new environment for the given configuration.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.util.List<io.micronaut.context.env.PropertySource> readPropertySourceList​(java.lang.String name)  
      protected void readPropertySources​(java.lang.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, getPropertySourceLoaders, getPropertySourceRootName, getPropertySources, getResource, getResourceAsStream, getResources, isActive, isPresent, isRunning, readPropertySourceListFromFiles, readPropertySourceListKeyFromEnvironment, readPropertySourceLoaders, refreshAndDiff, removePropertySource, scan, scan, shouldDeduceEnvironments, start, stop, supportsPrefix
      • Methods inherited from class io.micronaut.context.env.PropertySourcePropertyResolver

        containsProperties, containsProperty, getAllProperties, getProperties, getProperty, getPropertyEntries, processPropertySource, resetCaches, resolveEntriesForKey, 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, 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, getRequiredProperty
      • Methods inherited from interface io.micronaut.core.value.ValueResolver

        get, get, get
    • Constructor Detail

      • 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 configuration
        context - visitor context
    • Method Detail

      • readPropertySources

        protected void readPropertySources​(java.lang.String name)
        Overrides:
        readPropertySources in class io.micronaut.context.env.DefaultEnvironment
        Parameters:
        name - The name to read property sources
      • readPropertySourceList

        protected java.util.List<io.micronaut.context.env.PropertySource> readPropertySourceList​(java.lang.String name)
        Overrides:
        readPropertySourceList in class io.micronaut.context.env.DefaultEnvironment
        Parameters:
        name - The name to resolver property sources
        Returns:
        The list of property sources