Class ConfigProviderResolverImpl
- java.lang.Object
-
- org.eclipse.microprofile.config.spi.ConfigProviderResolver
-
- fish.payara.nucleus.microprofile.config.spi.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)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.glassfish.api.event.EventListener
EventListener.Event<T>
-
-
Constructor Summary
Constructors Constructor Description ConfigProviderResolverImpl()
Logs constructor as finest - may be useful to watch sequence of operations.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
event(EventListener.Event<?> event)
Process a Glassfish/Payara eventorg.eclipse.microprofile.config.spi.ConfigBuilder
getBuilder()
org.eclipse.microprofile.config.Config
getConfig()
org.eclipse.microprofile.config.Config
getConfig(ClassLoader loader)
List<Properties>
getDeployedApplicationPayaraExpressionConfigProperties(String applicationName)
List<Properties>
getDeployedApplicationProperties(String applicationName)
String
getDeployedApplicationProperty(String applicationName, String name)
PayaraExecutorService
getExecutor()
MicroprofileConfigConfiguration
getMPConfig()
void
postConstruct()
Sets the globalConfigProviderResolver.instance()
to this instance.void
registerConfig(org.eclipse.microprofile.config.Config config, ClassLoader classLoader)
void
releaseConfig(org.eclipse.microprofile.config.Config config)
-
-
-
Method Detail
-
postConstruct
@PostConstruct public void postConstruct()
Sets the globalConfigProviderResolver.instance()
to this instance.
-
getMPConfig
public MicroprofileConfigConfiguration getMPConfig()
-
getConfig
public org.eclipse.microprofile.config.Config getConfig()
- Specified by:
getConfig
in classorg.eclipse.microprofile.config.spi.ConfigProviderResolver
-
getConfig
public org.eclipse.microprofile.config.Config getConfig(ClassLoader loader)
- Specified by:
getConfig
in classorg.eclipse.microprofile.config.spi.ConfigProviderResolver
-
getBuilder
public org.eclipse.microprofile.config.spi.ConfigBuilder getBuilder()
- Specified by:
getBuilder
in classorg.eclipse.microprofile.config.spi.ConfigProviderResolver
-
getExecutor
public PayaraExecutorService getExecutor()
-
registerConfig
public void registerConfig(org.eclipse.microprofile.config.Config config, ClassLoader classLoader)
- Specified by:
registerConfig
in classorg.eclipse.microprofile.config.spi.ConfigProviderResolver
-
releaseConfig
public void releaseConfig(org.eclipse.microprofile.config.Config config)
- Specified by:
releaseConfig
in classorg.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)
-
event
public void event(EventListener.Event<?> event)
Description copied from interface:EventListener
Process a Glassfish/Payara event- Specified by:
event
in interfaceEventListener
-
-