Interface PatchService

  • All Known Implementing Classes:
    PatchServiceImpl

    public interface PatchService
    Service to handle and manage patches on unomi items. The service will load patches from META-INF/cxs/patches in modules. The patch is automatically applied the first time it is viewed by the service, if the item to patch exists, and then saved in persistence. The service also allows to reload a patch from persistence and apply it.
    • Method Detail

      • load

        Patch load​(String id)
        Load a patch from its id
        Parameters:
        id - the unique id of the patch
        Returns:
        the patch
      • patch

        Item patch​(Patch patch)
        Apply a patch
        Parameters:
        patch - the patch to apply
        Returns:
        the patched item