コード例 #1
0
  @Override
  public MetadataImpl build() {
    final CfgXmlAccessService cfgXmlAccessService =
        options.serviceRegistry.getService(CfgXmlAccessService.class);
    if (cfgXmlAccessService.getAggregatedConfig() != null) {
      if (cfgXmlAccessService.getAggregatedConfig().getMappingReferences() != null) {
        for (MappingReference mappingReference :
            cfgXmlAccessService.getAggregatedConfig().getMappingReferences()) {
          mappingReference.apply(sources);
        }
      }
    }

    return MetadataBuildingProcess.build(sources, options);
  }
コード例 #2
0
  private void applyCfgXmlValues(CfgXmlAccessService service) {
    final LoadedConfig aggregatedConfig = service.getAggregatedConfig();
    if (aggregatedConfig == null) {
      return;
    }

    for (CacheRegionDefinition cacheRegionDefinition :
        aggregatedConfig.getCacheRegionDefinitions()) {
      applyCacheRegionDefinition(cacheRegionDefinition);
    }
  }