[JBoss JIRA] (JBIDE-15351) Implement bean discovery in explicit and implicit archives
by Viacheslav Kabanovich (JIRA)
[ https://issues.jboss.org/browse/JBIDE-15351?page=com.atlassian.jira.plugi... ]
Viacheslav Kabanovich updated JBIDE-15351:
------------------------------------------
Description:
http://docs.jboss.org/cdi/spec/1.1/cdi-spec.html#bean_archive
1. Create CDI 1.1 project.
2. Create other CDI 1.1 projects and export them to jars or to class folders,
these projects may vary in beans.xml:
- no beans.xml
- empty beans.xml
- beans.xml with 1.0 schema
- beans.xml with 1.1 schema and all possible values
of bean-discovery-mode attribute ("annotated"/"none"/"all")
and have classes with and without scope declaration.
3. Add these archives to classpath of project (1).
4. Create a bean with injections to types defined in the archives.
5. Check that injection is satisfied or not according to bean discovery rules given by specification.
Examples:
- Archive has no beans.xml: only annotated beans will be resolved;
- Archive has empty beans.xml, or beans.xml with 1.0 schema: all beans will be resolved;
- Archive has beans.xml with version 1.1: beans will be resolved according to the value of bean-discovery-attribute.
was:
http://docs.jboss.org/cdi/spec/1.1/cdi-spec.html#bean_archive
1. Create CDI 1.1 project.
2. Create other CDI 1.1 projects and export them to jars or to class folders,
these projects may vary in beans.xml:
- no beans.xml
- empty beans.xml
- beans.xml with 1.0 schema
- beans.xml with 1.1 schema and all possible values
of bean-discovery-mode attribute ("annotated"/"none"/"all")
and have classes with and without scope declaration.
3. Add these archives to classpath of project (1).
4. Create a bean with injections to types defined in the archives.
5. Check that injection is satisfied or not according to bean discovery rules given by specification.
Examples:
- Archive has no beans.xml: only annotated beans will be resolved;
- Archive has empty beans.xml, or beans.xml with 1.0 schema: all beans will be resolved;
- Archive has beans.xml with version 1.1: beans will be resolved according to the value of bean-discovery-attribute.
> Implement bean discovery in explicit and implicit archives
> -----------------------------------------------------------
>
> Key: JBIDE-15351
> URL: https://issues.jboss.org/browse/JBIDE-15351
> Project: Tools (JBoss Tools)
> Issue Type: Feature Request
> Components: CDI
> Reporter: Viacheslav Kabanovich
> Assignee: Viacheslav Kabanovich
> Fix For: 4.2.0.Alpha1
>
>
> http://docs.jboss.org/cdi/spec/1.1/cdi-spec.html#bean_archive
> 1. Create CDI 1.1 project.
> 2. Create other CDI 1.1 projects and export them to jars or to class folders,
> these projects may vary in beans.xml:
> - no beans.xml
> - empty beans.xml
> - beans.xml with 1.0 schema
> - beans.xml with 1.1 schema and all possible values
> of bean-discovery-mode attribute ("annotated"/"none"/"all")
> and have classes with and without scope declaration.
> 3. Add these archives to classpath of project (1).
> 4. Create a bean with injections to types defined in the archives.
> 5. Check that injection is satisfied or not according to bean discovery rules given by specification.
> Examples:
> - Archive has no beans.xml: only annotated beans will be resolved;
> - Archive has empty beans.xml, or beans.xml with 1.0 schema: all beans will be resolved;
> - Archive has beans.xml with version 1.1: beans will be resolved according to the value of bean-discovery-attribute.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 7 months
[JBoss JIRA] (JBIDE-15351) Implement bean discovery in explicit and implicit archives
by Viacheslav Kabanovich (JIRA)
Viacheslav Kabanovich created JBIDE-15351:
---------------------------------------------
Summary: Implement bean discovery in explicit and implicit archives
Key: JBIDE-15351
URL: https://issues.jboss.org/browse/JBIDE-15351
Project: Tools (JBoss Tools)
Issue Type: Feature Request
Components: CDI
Reporter: Viacheslav Kabanovich
Assignee: Viacheslav Kabanovich
Fix For: 4.2.0.Alpha1
http://docs.jboss.org/cdi/spec/1.1/cdi-spec.html#bean_archive
1. Create CDI 1.1 project.
2. Create other CDI 1.1 projects and export them to jars or to class folders,
these projects may vary in beans.xml:
- no beans.xml
- empty beans.xml
- beans.xml with 1.0 schema
- beans.xml with 1.1 schema and all possible values
of bean-discovery-mode attribute ("annotated"/"none"/"all")
and have classes with and without scope declaration.
3. Add these archives to classpath of project (1).
4. Create a bean with injections to types defined in the archives.
5. Check that injection is satisfied or not according to bean discovery rules given by specification.
Examples:
- Archive has no beans.xml: only annotated beans will be resolved;
- Archive has empty beans.xml, or beans.xml with 1.0 schema: all beans will be resolved;
- Archive has beans.xml with version 1.1: beans will be resolved according to the value of bean-discovery-attribute.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 7 months
[JBoss JIRA] (JBIDE-15350) Using JBoss Tools Properties Editor, breaks the format (or removes) multiline property value
by Viacheslav Kabanovich (JIRA)
[ https://issues.jboss.org/browse/JBIDE-15350?page=com.atlassian.jira.plugi... ]
Viacheslav Kabanovich edited comment on JBIDE-15350 at 8/16/13 6:55 PM:
------------------------------------------------------------------------
Yes, JBoss Tools Properties editor is currently based on java.util.Properties.
It does not support multiple values and it does not support the kind of comments presented in the first snippet in description. JBIDE-3833 was not about multiple values, but only about multiline value, and it was resolved with supporting all reasonable cases of splitting value to several lines that we could think of. Still, it can be tricked as in your example.
If you rewrite the entry as
{code}
#
#
# JQuery scripts
#
javascript.files=\
jquery.js,\
j2browse.js,\
livequery.js
{code}
it will be preserved even if you edit/add/remove other properties.
But, ok, we will continue the work on preventing damage to any file.
was (Author: scabanovich):
Yes, JBoss Tools Properties editor is currently based on java.util.Properties.
It does not support multiple values and it does not support the kind of comments presented in the first snippet in description. JBIDE-3833 was not about multiple values, but only about multiline value, and it was resolved with supporting all reasonable cases of splitting value to several lines that we could think of. Still, it can be tricked as in your example.
If you rewrite you entry as
{code}
#
#
# JQuery scripts
#
javascript.files=\
jquery.js,\
j2browse.js,\
livequery.js
{code}
it will be preserved even if you edit/add/remove other properties.
But, ok, we will continue the work on preventing damage to any file.
> Using JBoss Tools Properties Editor, breaks the format (or removes) multiline property value
> --------------------------------------------------------------------------------------------
>
> Key: JBIDE-15350
> URL: https://issues.jboss.org/browse/JBIDE-15350
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: common/jst/core
> Affects Versions: 4.1.0.Final
> Reporter: thiago andrade
> Assignee: Viacheslav Kabanovich
> Fix For: 4.2.x
>
>
> In eclipse juno with JbossTools installed and jboss tools property editor opening my .properties files
> when I write in the file some something like
> javascript.files=\
> #
> # JQuery scripts
> #
> \
> jquery.js,\
> j2browse.js,\
> livequery.js,\
> it saves the file correctly BUT when I close this file and open it again the jboss tools properties editor parses the file and it becames something like this
> javascript.files=\#
> # JQuery scripts
> #
> \
> jquery.js,\
> j2browse.js,\
> livequery.js,\
> That's it.
> another error that I've identified is already reported at this link https://issues.jboss.org/browse/JBIDE-3833 BUT this issue is marked as resolved but it is not resolved.. the jboss tools properties editor still removes multiplie values variables from the file when it OPENS the file.
> so this:
> js.files = util.js
> js.files = jquery.meiomask.js
> js.files = json2.0.js
> becames this:
> js.files = json2.0.js
> I think that the jboss tools parses the file and removes the multiple.. if the user dont modified the file and save the original file is not changed, but if any change is made to the file it is saved with the modifications made by jboss tools properties editor
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 7 months
[JBoss JIRA] (JBIDE-15350) Using JBoss Tools Properties Editor, breaks the format (or removes) multiline property value
by Viacheslav Kabanovich (JIRA)
[ https://issues.jboss.org/browse/JBIDE-15350?page=com.atlassian.jira.plugi... ]
Viacheslav Kabanovich commented on JBIDE-15350:
-----------------------------------------------
Yes, JBoss Tools Properties editor is currently based on java.util.Properties.
It does not support multiple values and it does not support the kind of comments presented in the first snippet in description. JBIDE-3833 was not about multiple values, but only about multiline value, and it was resolved with supporting all reasonable cases of splitting value to several lines that we could think of. Still, it can be tricked as in your example.
If you rewrite you entry as
{code}
#
#
# JQuery scripts
#
javascript.files=\
jquery.js,\
j2browse.js,\
livequery.js
{code}
it will be preserved even if you edit/add/remove other properties.
But, ok, we will continue the work on preventing damage to any file.
> Using JBoss Tools Properties Editor, breaks the format (or removes) multiline property value
> --------------------------------------------------------------------------------------------
>
> Key: JBIDE-15350
> URL: https://issues.jboss.org/browse/JBIDE-15350
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: common/jst/core
> Affects Versions: 4.1.0.Final
> Reporter: thiago andrade
> Assignee: Viacheslav Kabanovich
> Fix For: 4.2.x
>
>
> In eclipse juno with JbossTools installed and jboss tools property editor opening my .properties files
> when I write in the file some something like
> javascript.files=\
> #
> # JQuery scripts
> #
> \
> jquery.js,\
> j2browse.js,\
> livequery.js,\
> it saves the file correctly BUT when I close this file and open it again the jboss tools properties editor parses the file and it becames something like this
> javascript.files=\#
> # JQuery scripts
> #
> \
> jquery.js,\
> j2browse.js,\
> livequery.js,\
> That's it.
> another error that I've identified is already reported at this link https://issues.jboss.org/browse/JBIDE-3833 BUT this issue is marked as resolved but it is not resolved.. the jboss tools properties editor still removes multiplie values variables from the file when it OPENS the file.
> so this:
> js.files = util.js
> js.files = jquery.meiomask.js
> js.files = json2.0.js
> becames this:
> js.files = json2.0.js
> I think that the jboss tools parses the file and removes the multiple.. if the user dont modified the file and save the original file is not changed, but if any change is made to the file it is saved with the modifications made by jboss tools properties editor
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 7 months