[JBoss JIRA] Moved: (SOLDER-42) We need a ForwardingInjection point
by Pete Muir (JIRA)
[ https://jira.jboss.org/browse/SOLDER-42?page=com.atlassian.jira.plugin.sy... ]
Pete Muir moved WELDX-186 to SOLDER-42:
---------------------------------------
Project: Seam Solder (was: Weld Extensions)
Key: SOLDER-42 (was: WELDX-186)
Affects Version/s: 1.1.0.Beta1
(was: 1.1.0.Beta1)
Assignee: (was: Jason Porter)
Component/s: Generic Beans
(was: Generic Beans)
Fix Version/s: 1.0.0.Beta2
(was: 1.0.0.Beta2)
> We need a ForwardingInjection point
> ------------------------------------
>
> Key: SOLDER-42
> URL: https://jira.jboss.org/browse/SOLDER-42
> Project: Seam Solder
> Issue Type: Feature Request
> Components: Generic Beans
> Affects Versions: 1.1.0.Beta1
> Reporter: Jason Porter
> Labels: community_contributor_needed
> Fix For: 1.0.0.Beta2
>
>
> We have
> * ForwardingBean
> * ForwardingInjectionTarget
> * ForwardingObserverMethod
> a ForwardingInjectionPoint would be handy if you need to redefine one (i.e. using InjectableMethod and ParameterValueRedefiner)
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 7 months
[JBoss JIRA] Moved: (SOLDER-40) Introduce @Qualified to have package name prepended to @Named value
by Pete Muir (JIRA)
[ https://jira.jboss.org/browse/SOLDER-40?page=com.atlassian.jira.plugin.sy... ]
Pete Muir moved WELDX-179 to SOLDER-40:
---------------------------------------
Project: Seam Solder (was: Weld Extensions)
Key: SOLDER-40 (was: WELDX-179)
Affects Version/s: (was: 1.0.0.Beta1)
Assignee: (was: Dan Allen)
Fix Version/s: 1.0.0.Beta2
(was: 1.0.0.Beta2)
> Introduce @Qualified to have package name prepended to @Named value
> -------------------------------------------------------------------
>
> Key: SOLDER-40
> URL: https://jira.jboss.org/browse/SOLDER-40
> Project: Seam Solder
> Issue Type: Feature Request
> Reporter: Dan Allen
> Priority: Minor
> Fix For: 1.0.0.Beta2
>
>
> @Named gives the bean a name equal to the annotation value property or, if one is not specified, the decapitalized simple name of the type. This behavior is precisely what the majority of developers will appreciate. However, framework writers should avoid stomping on the root bean namespace, instead assigning qualified names to their built-in components. The motivation is the same as qualifying Java types.
> One way to accomplish this would be to include the package name in the name specified in the @Named annotation:
> @Named("org.jboss.seam.security.Identity")
> public class Identity ... { ... }
> However, this is not in the spirit of type-safety. As an alternative, Weld X can introduce an annotation which indicates that the bean name be qualified to the package in which the type resides.
> @Qualified @Named
> public class Identity ... { ... }
> This allows the bean name to be defaulted and keeps the package out of a string.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 7 months
[JBoss JIRA] Moved: (SOLDER-41) add getSingleResult() to PropertyQuery
by Pete Muir (JIRA)
[ https://jira.jboss.org/browse/SOLDER-41?page=com.atlassian.jira.plugin.sy... ]
Pete Muir moved WELDX-177 to SOLDER-41:
---------------------------------------
Project: Seam Solder (was: Weld Extensions)
Key: SOLDER-41 (was: WELDX-177)
Affects Version/s: (was: 1.0.0.Beta1)
Assignee: (was: Dan Allen)
Fix Version/s: 1.0.0.Beta2
(was: 1.0.0.Beta2)
> add getSingleResult() to PropertyQuery
> --------------------------------------
>
> Key: SOLDER-41
> URL: https://jira.jboss.org/browse/SOLDER-41
> Project: Seam Solder
> Issue Type: Feature Request
> Reporter: Dan Allen
> Fix For: 1.0.0.Beta2
>
>
> PropertyQuery should offer the method getSingleResult() for the same reason it exists in the JPA Query interface: to fetch a single result but also assert that there is only one result to be fetched. If more than one property is matched when getSingleResult() is called, an exception will result.
> Using getFirstResult() to return exactly one result is inappropriate (and could lead to bugs) because it could hide the fact that multiple properties are being inadvertently matched. As a workaround, the developer would currently have to run getResultList() to ensure only one property matches. Offering a getSingleResult() would resolve these issues.
> See http://download.oracle.com/javaee/6/api/javax/persistence/Query.html#getS...
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 7 months