コード例 #1
0
 protected PackageConfigData loadPackageConfig(PackageItem packageItem) {
   PackageConfigData data =
       PackageConfigDataFactory.createPackageConfigDataWithDependencies(packageItem);
   if (data.isSnapshot()) {
     data.setSnapshotName(packageItem.getSnapshotName());
   }
   return data;
 }
コード例 #2
0
  protected PackageConfigData loadGlobalPackage() {
    PackageItem item = rulesRepository.loadGlobalArea();

    PackageConfigData data =
        PackageConfigDataFactory.createPackageConfigDataWithOutDependencies(item);

    if (data.isSnapshot()) {
      data.setSnapshotName(item.getSnapshotName());
    }

    return data;
  }