public class GitConfigSource extends AbstractParsableConfigSource<byte[]>
Config source is initialized by GitConfigSourceBuilder.
AbstractParsableConfigSource.Builder<B extends AbstractParsableConfigSource.Builder<B,T>,T>AbstractSource.Data<D,S>| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the @{code Source}, releasing any resources it holds.
|
protected ConfigParser.Content<byte[]> |
content()
Returns config source content.
|
static GitConfigSource |
create(Config config)
Create an instance from meta configuration.
|
protected Optional<byte[]> |
dataStamp()
Returns current stamp of data in config source.
|
protected String |
mediaType()
Returns source associated media type or
null if unknown. |
protected String |
uid()
Returns universal id of source to be used to construct
AbstractSource.description(). |
loadData, parserchanges, configContext, init, processLoadedDatadescription, fireChangeEvent, isMandatory, loadclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetdescription, loadpublic static GitConfigSource create(Config config)
config - meta configuration of this sourceConfigSources.load(Supplier[]),
ConfigSources.load(Config)protected String uid()
AbstractSourceAbstractSource.description().uid in class AbstractSource<ConfigNode.ObjectNode,byte[]>protected String mediaType()
AbstractParsableConfigSourcenull if unknown.mediaType in class AbstractParsableConfigSource<byte[]>null if unknown.protected Optional<byte[]> dataStamp()
AbstractSourcedataStamp in class AbstractSource<ConfigNode.ObjectNode,byte[]>protected ConfigParser.Content<byte[]> content() throws ConfigException
AbstractParsableConfigSourcecontent in class AbstractParsableConfigSource<byte[]>null.ConfigException - in case of loading of configuration from config source failed.public void close()
throws IOException
SourceIOExceptionCopyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.