mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Fix to unreported issue where FormImpl class was not correctly deserializable, it would not correctly reinitialize from serialized state due to a static initialisation block relying on a FacesContext being available.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@17107 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -73,12 +73,8 @@ public class FormImpl implements Form
|
|||||||
private transient FormsService formsService;
|
private transient FormsService formsService;
|
||||||
private transient Map<String, RenderingEngineTemplate> renderingEngineTemplates;
|
private transient Map<String, RenderingEngineTemplate> renderingEngineTemplates;
|
||||||
|
|
||||||
private final static LinkedList<FormProcessor> PROCESSORS = new LinkedList<FormProcessor>();
|
private transient static LinkedList<FormProcessor> PROCESSORS = null;
|
||||||
|
|
||||||
static
|
|
||||||
{
|
|
||||||
FormImpl.PROCESSORS.add(new XFormsProcessor());
|
|
||||||
}
|
|
||||||
|
|
||||||
protected FormImpl(final NodeRef folderNodeRef, final FormsService formsService)
|
protected FormImpl(final NodeRef folderNodeRef, final FormsService formsService)
|
||||||
{
|
{
|
||||||
@@ -255,6 +251,14 @@ public class FormImpl implements Form
|
|||||||
|
|
||||||
public List<FormProcessor> getFormProcessors()
|
public List<FormProcessor> getFormProcessors()
|
||||||
{
|
{
|
||||||
|
synchronized (FormImpl.class)
|
||||||
|
{
|
||||||
|
if (PROCESSORS == null)
|
||||||
|
{
|
||||||
|
PROCESSORS = new LinkedList<FormProcessor>();
|
||||||
|
PROCESSORS.add(new XFormsProcessor());
|
||||||
|
}
|
||||||
|
}
|
||||||
return PROCESSORS;
|
return PROCESSORS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user