コード例 #1
0
  private Map<String, String> getTargetServerAttributesMapping(
      CacheRefreshConfiguration cacheRefreshConfigurationuration) {
    Map<String, String> result = new HashMap<String, String>();
    for (CacheRefreshAttributeMapping attributeMapping :
        cacheRefreshConfigurationuration.getAttributeMapping()) {
      result.put(attributeMapping.getDestination(), attributeMapping.getSource());
    }

    return result;
  }
コード例 #2
0
  private List<SimpleCustomProperty> toSimpleCustomProperties(
      List<CacheRefreshAttributeMapping> attributeMappings) {
    List<SimpleCustomProperty> result = new ArrayList<SimpleCustomProperty>();

    for (CacheRefreshAttributeMapping attributeMapping : attributeMappings) {
      result.add(
          new SimpleCustomProperty(
              attributeMapping.getSource(), attributeMapping.getDestination()));
    }

    return result;
  }