| com.tc.config.schema.setup.sources.ConfigurationSource
All known Subclasses: com.tc.config.schema.setup.sources.URLConfigurationSource, com.tc.config.schema.setup.sources.FileConfigurationSource, com.tc.config.schema.setup.sources.ServerConfigurationSource, com.tc.config.schema.setup.sources.ResourceConfigurationSource,
ConfigurationSource | public interface ConfigurationSource (Code) | | Knows how to fetch configuration — just as an
InputStream — from some source.
|
Method Summary | |
File | directoryLoadedFrom() Returns the directory from which the configuration was loaded, if such a thing exists. | InputStream | getInputStream(long maxTimeoutMillis) This method should throw an
IOException if it tried to get the data but couldn't, but it's possible that it
might be able to in the future (for example, URLs). | boolean | isTrusted() Returns true iff the source was a TCProtocolConfigurationSource. |
directoryLoadedFrom | File directoryLoadedFrom()(Code) | | Returns the directory from which the configuration was loaded, if such a thing exists. For example, when
data is loaded from URLs or resources, this will be null ; however, when loaded from files, this
will return a valid value.
|
isTrusted | boolean isTrusted()(Code) | | Returns true iff the source was a TCProtocolConfigurationSource.
|
|
|