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 EventListenerThis 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 voidevent(EventListener.Event<?> event)Process a Glassfish/Payara eventorg.eclipse.microprofile.config.spi.ConfigBuildergetBuilder()org.eclipse.microprofile.config.ConfiggetConfig()org.eclipse.microprofile.config.ConfiggetConfig(ClassLoader loader)List<Properties>getDeployedApplicationPayaraExpressionConfigProperties(String applicationName)List<Properties>getDeployedApplicationProperties(String applicationName)StringgetDeployedApplicationProperty(String applicationName, String name)PayaraExecutorServicegetExecutor()MicroprofileConfigConfigurationgetMPConfig()voidpostConstruct()Sets the globalConfigProviderResolver.instance()to this instance.voidregisterConfig(org.eclipse.microprofile.config.Config config, ClassLoader classLoader)voidreleaseConfig(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:
getConfigin classorg.eclipse.microprofile.config.spi.ConfigProviderResolver
-
getConfig
public org.eclipse.microprofile.config.Config getConfig(ClassLoader loader)
- Specified by:
getConfigin classorg.eclipse.microprofile.config.spi.ConfigProviderResolver
-
getBuilder
public org.eclipse.microprofile.config.spi.ConfigBuilder getBuilder()
- Specified by:
getBuilderin classorg.eclipse.microprofile.config.spi.ConfigProviderResolver
-
getExecutor
public PayaraExecutorService getExecutor()
-
registerConfig
public void registerConfig(org.eclipse.microprofile.config.Config config, ClassLoader classLoader)- Specified by:
registerConfigin classorg.eclipse.microprofile.config.spi.ConfigProviderResolver
-
releaseConfig
public void releaseConfig(org.eclipse.microprofile.config.Config config)
- Specified by:
releaseConfigin 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:EventListenerProcess a Glassfish/Payara event- Specified by:
eventin interfaceEventListener
-
-