public class ResourceConfigSupplier<Message extends PMessage<Message,Field>,Field extends PField> extends FixedConfigSupplier<Message,Field>
ConfigSupplier<Service, Service._Field> supplier =
new ResourceConfigSupplier<>(resourceName, Service.kDescriptor);
| Constructor and Description |
|---|
ResourceConfigSupplier(String resourceName,
PMessageDescriptor<Message,Field> descriptor)
Create a config that wraps a providence message instance.
|
ResourceConfigSupplier(String resourceName,
PMessageDescriptor<Message,Field> descriptor,
Clock clock)
Create a config that wraps a providence message instance.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Get a simple descriptive name for this config supplier.
|
addListener, configTimestamp, get, removeListener, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitsnapshotpublic ResourceConfigSupplier(String resourceName, PMessageDescriptor<Message,Field> descriptor) throws ProvidenceConfigException
resourceName - The resource name to load.descriptor - The message type descriptor.ProvidenceConfigException - If message overriding failedpublic ResourceConfigSupplier(String resourceName, PMessageDescriptor<Message,Field> descriptor, Clock clock) throws ProvidenceConfigException
resourceName - The resource name to load.descriptor - The message type descriptor.clock - The clock to use in timing config loads.ProvidenceConfigException - If message overriding failedpublic String getName()
ConfigSupplierCopyright © 2015–2018 morimekta.net. All rights reserved.