[ https://issues.apache.org/jira/browse/PLUTO-601?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12924201#action_12924201 ]
Eric Dalquist commented on PLUTO-601: ------------------------------------- So I noticed that in the previous code DocumentBuilderFactory was being treated as a class level field as well, it was just lazily initialized. Should I leave it as is or do you think it should be created every time it is needed? > Remove expensive object creation in PortletAppDescriptorServiceImpl > ------------------------------------------------------------------- > > Key: PLUTO-601 > URL: https://issues.apache.org/jira/browse/PLUTO-601 > Project: Pluto > Issue Type: Improvement > Components: portlet container > Reporter: Eric Dalquist > Assignee: Eric Dalquist > Fix For: 2.0.3, 2.1.0 > > > PortletAppDescriptorServiceImpl creates new JAXBContext, XMLInputFactory, > DocumentBuilderFactory, and Pattern objects every time they are needed. All > of these objects are thread-safe once created and configured and should only > be created once at the class level and re-used for the life of the class. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.