public interface ConfigurationRepository<T extends Configuration,Loader extends ConfigurationLoader<T>,Writer extends ConfigurationWriter<T>> extends Lifecycle, EventPublisherAware, Initializable
| 限定符和类型 | 方法和说明 |
|---|---|
void |
add(T configuration)
Add a configuration to the repository
it equals:
add(T configuration, true) |
void |
add(T configuration,
boolean sync) |
T |
getById(String id)
Get a configuration bean by a specified id
|
void |
removeById(String id)
Remove a configuration by id
it equals:
removeById(T configuration, true) |
void |
removeById(String id,
boolean sync)
Remove a configuration by id
|
void |
setConfigurationLoader(Loader loader)
set a loader
|
void |
setConfigurationWriter(Writer writer)
set a writer
|
void |
update(T configuration)
update the configuration to storage
it equals:
update(T configuration, true) |
void |
update(T configuration,
boolean sync)
update the configuration to storage
|
getEventPublisher, setEventPublisherinitvoid setConfigurationLoader(Loader loader)
loader - the configuration loadervoid setConfigurationWriter(Writer writer)
writer - the configuration writerT getById(String id)
id - the idvoid removeById(String id)
removeById(T configuration, true)id - the configuration idvoid removeById(String id, boolean sync)
id - the configuration idsync - whether sync to the real storage or notvoid add(T configuration)
add(T configuration, true)configuration - the configuration beanvoid add(T configuration, boolean sync)
configuration - the configurationsync - whether sync to the real storage or notvoid update(T configuration)
update(T configuration, true)configuration - the configuration beanvoid update(T configuration, boolean sync)
configuration - the configuration beansync - whether sync to the real storage or notCopyright © 2019. All rights reserved.