Class ConfigProviderResolverImpl

  • All Implemented Interfaces:
    EventListener

    @Service(name="microprofile-config-provider")
    @ContractsProvided({org.eclipse.microprofile.config.spi.ConfigProviderResolver.class,ConfigProviderResolverImpl.class})
    @RunLevel(9)
    public class ConfigProviderResolverImpl
    extends org.eclipse.microprofile.config.spi.ConfigProviderResolver
    implements EventListener
    This Service implements the Microprofile Config API and provides integration into the guts of Payara Server.
    Author:
    Steve Millidge (Payara Foundation)
    • Constructor Detail

      • ConfigProviderResolverImpl

        public ConfigProviderResolverImpl()
        Logs constructor as finest - may be useful to watch sequence of operations.
    • Method Detail

      • postConstruct

        @PostConstruct
        public void postConstruct()
        Sets the global ConfigProviderResolver.instance() to this instance.
      • getConfig

        public org.eclipse.microprofile.config.Config getConfig()
        Specified by:
        getConfig in class org.eclipse.microprofile.config.spi.ConfigProviderResolver
      • getConfig

        public org.eclipse.microprofile.config.Config getConfig​(ClassLoader loader)
        Specified by:
        getConfig in class org.eclipse.microprofile.config.spi.ConfigProviderResolver
      • getBuilder

        public org.eclipse.microprofile.config.spi.ConfigBuilder getBuilder()
        Specified by:
        getBuilder in class org.eclipse.microprofile.config.spi.ConfigProviderResolver
      • registerConfig

        public void registerConfig​(org.eclipse.microprofile.config.Config config,
                                   ClassLoader classLoader)
        Specified by:
        registerConfig in class org.eclipse.microprofile.config.spi.ConfigProviderResolver
      • releaseConfig

        public void releaseConfig​(org.eclipse.microprofile.config.Config config)
        Specified by:
        releaseConfig in class org.eclipse.microprofile.config.spi.ConfigProviderResolver
      • getDeployedApplicationProperties

        public List<Properties> getDeployedApplicationProperties​(String applicationName)
      • getDeployedApplicationProperty

        public String getDeployedApplicationProperty​(String applicationName,
                                                     String name)
      • getDeployedApplicationPayaraExpressionConfigProperties

        public List<Properties> getDeployedApplicationPayaraExpressionConfigProperties​(String applicationName)