ORDERLY_COMPARATOR| 构造器和说明 |
|---|
BaseNamespaceContainer() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected com.google.common.collect.Multimap<String,K> |
getNamespaceAndKeyFromTargets(com.google.common.collect.Multimap<AssembleOperation,?> operations)
将对象集合转为所需要的namespace与key集合
|
protected abstract Map<String,Map<K,T>> |
getSources(com.google.common.collect.Multimap<String,K> namespaceAndKeys)
根据装配的key字段值与namespace获取对应的数据源对象集合
|
protected K |
parseKey(Object key)
将获取的key字段值转为所需要的类型
|
void |
process(com.google.common.collect.Multimap<AssembleOperation,?> operations)
根据指定装配操作配置处理待处理对象
|
protected void |
writeToTargets(Map<String,Map<K,T>> sources,
Object target,
AssembleOperation operation)
将数据源写入对象
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparator, compareTo, getActualOrder, getOrderpublic void process(com.google.common.collect.Multimap<AssembleOperation,?> operations)
Containerprotected void writeToTargets(@Nonnull Map<String,Map<K,T>> sources, @CheckForNull Object target, @Nonnull AssembleOperation operation)
sources - 数据源target - 待处理对象operation - 装配配置@Nonnull protected abstract Map<String,Map<K,T>> getSources(@Nonnull com.google.common.collect.Multimap<String,K> namespaceAndKeys)
namespaceAndKeys - namespace与key字段值集合@Nonnull protected com.google.common.collect.Multimap<String,K> getNamespaceAndKeyFromTargets(@Nonnull com.google.common.collect.Multimap<AssembleOperation,?> operations)
operations - 操作配置与对应的对象集合Copyright © 2022. All rights reserved.