struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-4443) Rename scope default to prototype
Date Thu, 18 Jun 2015 10:05:01 GMT

    [ https://issues.apache.org/jira/browse/WW-4443?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14591590#comment-14591590
] 

Hudson commented on WW-4443:
----------------------------

FAILURE: Integrated in Struts-JDK8-master #2 (See [https://builds.apache.org/job/Struts-JDK8-master/2/])
WW-4443 Renames scope DEFAULT into PROTOTYPE (lukaszlenart: rev 356b5c57b269e6ba7cfe267d4517e5f7a27ce200)
* core/src/main/resources/struts-default.xml
* core/src/main/java/com/opensymphony/xwork2/inject/Scope.java
* core/src/main/java/com/opensymphony/xwork2/config/providers/XmlConfigurationProvider.java
* core/src/main/java/org/apache/struts2/config/DefaultBeanSelectionProvider.java
* core/src/main/java/com/opensymphony/xwork2/inject/ContainerBuilder.java
* core/src/main/java/com/opensymphony/xwork2/config/providers/XWorkConfigurationProvider.java


> Rename scope default to prototype
> ---------------------------------
>
>                 Key: WW-4443
>                 URL: https://issues.apache.org/jira/browse/WW-4443
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: XML Configuration
>    Affects Versions: 2.3.20
>            Reporter: Lukasz Lenart
>             Fix For: 2.5
>
>
> Internal DI mechanism uses {{default}} scope which is basically a prototype scope, but
the default scope is {{singleton}} in Struts, thus leads to confusion and misconfiguration.
> It'd be better to use name {{prototype}} to clearly express its meaning.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message