public interface ConfigurationRepository<T extends Configuration,Loader extends ConfigurationLoader<T>,Writer extends ConfigurationWriter<T>> extends Lifecycle, EventPublisherAware, Initializable, Repository<T,String>
| 限定符和类型 | 方法和说明 |
|---|---|
void |
add(T configuration)
Add a configuration to the repository
it equals:
add(T configuration, true) |
T |
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)
getById 在接口中 Repository<T extends Configuration,String>id - the idvoid removeById(String id)
removeById(T configuration, true)removeById 在接口中 Repository<T extends Configuration,String>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)add 在接口中 Repository<T extends Configuration,String>configuration - the configuration beanT add(T configuration, boolean sync)
configuration - the configurationsync - whether sync to the real storage or notvoid update(T configuration)
update(T configuration, true)update 在接口中 Repository<T extends Configuration,String>configuration - the configuration beanvoid update(T configuration, boolean sync)
configuration - the configuration beansync - whether sync to the real storage or notCopyright © 2020. All rights reserved.