From 025d92d25e16def071ec0f9a453bebe87522641e Mon Sep 17 00:00:00 2001 From: Arved Solth Date: Wed, 23 Oct 2024 16:31:38 +0200 Subject: [PATCH] Change scope of class 'MediaProvider' to 'SessionScope' --- .../production/forms/dataeditor/MediaProvider.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Kitodo/src/main/java/org/kitodo/production/forms/dataeditor/MediaProvider.java b/Kitodo/src/main/java/org/kitodo/production/forms/dataeditor/MediaProvider.java index d057f5ea85b..a2352bd8dda 100644 --- a/Kitodo/src/main/java/org/kitodo/production/forms/dataeditor/MediaProvider.java +++ b/Kitodo/src/main/java/org/kitodo/production/forms/dataeditor/MediaProvider.java @@ -11,11 +11,12 @@ package org.kitodo.production.forms.dataeditor; +import java.io.Serializable; import java.util.HashMap; import java.util.Map; import java.util.Objects; -import javax.enterprise.context.ApplicationScoped; +import javax.enterprise.context.SessionScoped; import javax.faces.context.FacesContext; import javax.faces.event.PhaseId; import javax.inject.Named; @@ -28,11 +29,11 @@ /** - * Application scoped media provider bean. + * Session scoped media provider bean. */ -@ApplicationScoped +@SessionScoped @Named -public class MediaProvider { +public class MediaProvider implements Serializable { private static final Logger logger = LogManager.getLogger(MediaProvider.class);