Class DefaultConfigSourceFactory
- java.lang.Object
-
- net.sf.gridarta.model.configsource.DefaultConfigSourceFactory
-
- All Implemented Interfaces:
ConfigSourceFactory
public class DefaultConfigSourceFactory extends java.lang.Object implements ConfigSourceFactory
AConfigSourceFactorythat is configured through action keys.
-
-
Constructor Summary
Constructors Constructor Description DefaultConfigSourceFactory()Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull ConfigSourcegetConfigSource(@NotNull java.lang.String name)Returns aConfigSourceby name.@NotNull ConfigSource @NotNull []getConfigSources()Returns all defined configuration sources.@NotNull ConfigSourcegetDefaultConfigSource()Returns the defaultConfigSource.
-
-
-
Method Detail
-
getConfigSources
@NotNull public @NotNull ConfigSource @NotNull [] getConfigSources()
Description copied from interface:ConfigSourceFactoryReturns all defined configuration sources. The returned array may be modified.- Specified by:
getConfigSourcesin interfaceConfigSourceFactory- Returns:
- the defined configuration sources
-
getConfigSource
@NotNull public @NotNull ConfigSource getConfigSource(@NotNull @NotNull java.lang.String name)
Description copied from interface:ConfigSourceFactoryReturns aConfigSourceby name.- Specified by:
getConfigSourcein interfaceConfigSourceFactory- Parameters:
name- the name- Returns:
- the configuration source of a default configuration source if the name does not exist
-
getDefaultConfigSource
@NotNull public @NotNull ConfigSource getDefaultConfigSource()
Description copied from interface:ConfigSourceFactoryReturns the defaultConfigSource.- Specified by:
getDefaultConfigSourcein interfaceConfigSourceFactory- Returns:
- the default configuration source
-
-