This is an automated email from the ASF dual-hosted git repository. pnoltes pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/celix.git
commit 29a0095547186f39f7588b3ea2023a809fd0cb4f Merge: 42e9669b 0decde3d Author: Pepijn Noltes <pepijnnol...@gmail.com> AuthorDate: Thu Apr 6 16:15:22 2023 +0200 Merge pull request #476 from apache/feature/refactor_bundle_cache Feature/refactor bundle cache .github/workflows/ubuntu.yml | 2 +- CMakeLists.txt | 4 +- bundles/deployment_admin/src/deployment_admin.c | 7 +- bundles/http_admin/gtest/CMakeLists.txt | 1 + .../http_admin/gtest/src/http_websocket_tests.cc | 2 +- bundles/http_admin/http_admin/CMakeLists.txt | 2 - bundles/http_admin/http_admin/src/activator.c | 41 +- bundles/http_admin/http_admin/src/http_admin.c | 44 +- .../http_admin/http_admin/src/websocket_admin.c | 7 - .../rsa_shm/gtest/CMakeLists.txt | 3 + .../topology_manager/tms_tst/CMakeLists.txt | 2 +- bundles/shell/shell/CMakeLists.txt | 2 +- bundles/shell/shell/gtest/src/ShellTestSuite.cc | 20 +- bundles/shell/shell/src/bundle_command.c | 72 ++ bundles/shell/shell/src/bundle_command.h | 49 + bundles/shell/shell/src/install_command.c | 2 +- bundles/shell/shell/src/lb_command.c | 209 ++--- bundles/shell/shell/src/start_command.c | 46 +- bundles/shell/shell/src/std_commands.c | 4 +- bundles/shell/shell/src/stop_command.c | 46 +- bundles/shell/shell/src/uninstall_command.c | 38 +- bundles/shell/shell/src/update_command.c | 98 +- cmake/celix_project/CodeCoverage.cmake | 2 +- documents/containers.md | 15 +- documents/framework.md | 73 +- examples/conan_test_package/test_framework.c | 1 + libs/error_injector/CMakeLists.txt | 8 +- libs/error_injector/README.md | 7 +- libs/error_injector/api/celix_error_injector.h | 16 +- .../asprintf/CMakeLists.txt} | 10 +- .../include/asprintf_ei.h} | 20 +- .../src/asprintf_ei.cc} | 25 +- .../src/celix_bundle_context_ei.cc | 2 +- .../celix_properties/src/celix_properties_ei.cc | 2 +- .../celix_utils/CMakeLists.txt} | 24 +- .../include/celix_utils_ei.h} | 44 +- .../celix_utils/src/celix_utils_ei.cc | 95 ++ .../dlfcn/CMakeLists.txt} | 13 +- .../include/dlfcn_ei.h} | 23 +- .../src/dlfcn_ei.cc} | 21 +- .../fts/CMakeLists.txt} | 13 +- .../include/fts_ei.h} | 23 +- .../{malloc/src/malloc_ei.cc => fts/src/fts_ei.cc} | 36 +- libs/error_injector/malloc/src/malloc_ei.cc | 6 +- .../stat/CMakeLists.txt} | 13 +- .../include/stat_ei.h} | 24 +- .../celix_properties_ei.cc => stat/src/stat_ei.cc} | 26 +- .../stdio/CMakeLists.txt} | 14 +- .../include/stdio_ei.h} | 25 +- libs/error_injector/stdio/src/stdio_ei.cc | 52 ++ .../zip/CMakeLists.txt} | 19 +- .../include/zip_ei.h} | 25 +- libs/error_injector/zip/src/zip_ei.cc | 52 ++ libs/framework/CMakeLists.txt | 33 +- libs/framework/gtest/CMakeLists.txt | 29 +- libs/framework/gtest/framework1.properties.in | 4 +- libs/framework/gtest/framework2.properties.in | 4 +- .../gtest/install_and_start_bundles.properties.in | 1 + libs/framework/gtest/src/BundleArchiveTestSuite.cc | 252 ++++++ .../BundleArchiveWithErrorInjectionTestSuite.cc | 142 +++ .../CelixFrameworkUtilsErrorInjectionTestSuite.cc | 113 +++ .../gtest/src/CelixFrameworkUtilsTestSuite.cc | 11 + libs/framework/gtest/src/CelixLauncherTestSuite.cc | 158 ++++ .../gtest/src/CxxBundleContextTestSuite.cc | 3 + .../gtest/src/bundle_context_bundles_tests.cpp | 45 +- libs/framework/gtest/src/single_framework_test.cpp | 34 +- libs/framework/include/bundle.h | 3 +- libs/framework/include/bundle_archive.h | 32 +- libs/framework/include/bundle_revision.h | 34 +- libs/framework/include/celix/Bundle.h | 94 +- libs/framework/include/celix/BundleContext.h | 75 +- libs/framework/include/celix/Constants.h | 13 +- libs/framework/include/celix/Exception.h | 2 +- libs/framework/include/celix/Framework.h | 6 +- libs/framework/include/celix/FrameworkUtils.h | 4 +- libs/framework/include/celix_bundle.h | 65 +- libs/framework/include/celix_bundle_context.h | 164 ++-- libs/framework/include/celix_constants.h | 42 +- libs/framework/include/celix_framework.h | 58 ++ libs/framework/include/celix_framework_utils.h | 11 + libs/framework/include/celix_launcher.h | 21 +- libs/framework/include/celix_log.h | 6 +- libs/framework/include/manifest.h | 2 + libs/framework/include/module.h | 3 +- libs/framework/src/bundle.c | 323 +++---- libs/framework/src/bundle_archive.c | 984 ++++++++------------- libs/framework/src/bundle_archive_private.h | 51 +- libs/framework/src/bundle_context.c | 70 +- libs/framework/src/bundle_private.h | 60 +- libs/framework/src/bundle_revision.c | 151 ++-- libs/framework/src/bundle_revision_private.h | 41 +- libs/framework/src/celix_bundle_cache.c | 351 ++++++-- libs/framework/src/celix_bundle_cache.h | 86 +- libs/framework/src/celix_errorcodes.c | 2 + libs/framework/src/celix_framework_utils.c | 277 +++--- libs/framework/src/celix_framework_utils_private.h | 16 + libs/framework/src/celix_launcher.c | 177 ++-- libs/framework/src/celix_libloader.c | 12 +- libs/framework/src/celix_libloader.h | 2 +- libs/framework/src/celix_log.c | 12 +- .../Exception.h => src/celix_module_private.h} | 34 +- libs/framework/src/dm_dependency_manager_impl.c | 2 +- libs/framework/src/framework.c | 680 ++++++-------- .../src/framework_bundle_lifecycle_handler.c | 86 +- libs/framework/src/framework_private.h | 124 ++- libs/framework/src/manifest.c | 28 +- libs/framework/src/module.c | 215 ++++- libs/launcher/README.md | 33 +- libs/utils/CMakeLists.txt | 74 +- libs/utils/gtest/CMakeLists.txt | 19 +- libs/utils/gtest/src/CelixUtilsTestSuite.cc | 317 +++++++ libs/utils/gtest/src/ConvertUtilsTestSuite.cc | 232 +++++ libs/utils/gtest/src/CxxUtilsTestSuite.cc | 8 +- .../gtest/src/FileUtilsErrorInjectionTestSuite.cc | 206 +++++ libs/utils/gtest/src/FileUtilsTestSuite.cc | 190 +++- libs/utils/include/celix/Filter.h | 20 +- libs/utils/include/celix/Properties.h | 34 +- libs/utils/include/celix_convert_utils.h | 82 ++ libs/utils/include/celix_errno.h | 6 + libs/utils/include/celix_file_utils.h | 18 + libs/utils/include/celix_threads.h | 6 + libs/utils/include/celix_utils.h | 56 ++ libs/utils/private/test/utils_test.cpp | 383 -------- libs/utils/src/celix_convert_utils.c | 133 +++ libs/utils/src/celix_file_utils.c | 267 ++++-- libs/utils/src/utils.c | 71 +- 126 files changed, 5699 insertions(+), 3134 deletions(-)