public class ReferenceConfigSupplier<RefMessage extends PMessage<RefMessage,RefField>,RefField extends PField,ParentMessage extends PMessage<ParentMessage,ParentField>,ParentField extends PField> extends UpdatingConfigSupplier<RefMessage,RefField>
ConfigSupplier<Service, Service._Field> supplier =
new ResourceConfigSupplier<>(referencePath, Service.kDescriptor);
| Constructor and Description |
|---|
ReferenceConfigSupplier(String referencePath,
ConfigSupplier<ParentMessage,ParentField> parent)
Create a config that wraps a providence message instance, and fetches a message from
within that parent config.
|
ReferenceConfigSupplier(String referencePath,
ConfigSupplier<ParentMessage,ParentField> parent,
Clock clock)
Create a config that wraps a providence message instance, and fetches a message from
within that parent config.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Get a simple descriptive name for this config supplier.
|
String |
toString() |
addListener, configTimestamp, get, removeListener, setclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitsnapshotpublic ReferenceConfigSupplier(@Nonnull String referencePath, @Nonnull ConfigSupplier<ParentMessage,ParentField> parent) throws ProvidenceConfigException
referencePath - The resource name to load.parent - The message type descriptor.ProvidenceConfigException - If message overriding failedpublic ReferenceConfigSupplier(String referencePath, ConfigSupplier<ParentMessage,ParentField> parent, Clock clock) throws ProvidenceConfigException
referencePath - The resource name to load.parent - The message type descriptor.clock - The clock to use for timing.ProvidenceConfigException - If message overriding failedpublic String getName()
ConfigSupplierCopyright © 2015–2018 morimekta.net. All rights reserved.