[JBoss JIRA] Created: (JBIDE-6031) Implement CDIProject.getBeans(boolean attemptToResolveAmbiguousDependency, IType beanType, IType... qualifiers)
by Alexey Kazakov (JIRA)
Implement CDIProject.getBeans(boolean attemptToResolveAmbiguousDependency, IType beanType, IType... qualifiers)
---------------------------------------------------------------------------------------------------------------
Key: JBIDE-6031
URL: https://jira.jboss.org/jira/browse/JBIDE-6031
Project: Tools (JBoss Tools)
Issue Type: Task
Components: cdi (jsr-299)
Affects Versions: 3.1.0.CR2
Reporter: Alexey Kazakov
Assignee: Viacheslav Kabanovich
Fix For: 3.2.next
See CDIProject.getBeans(boolean attemptToResolveAmbiguousDependency, IType beanType, IType... qualifiers)
and CDIProject.getBeans(boolean attemptToResolveAmbiguousDependency, String fullQualifiedBeanType, String... fullQualifiedQualifiersTypes)
Following tests should pass:
org.jboss.tools.cdi.core.test.tck.BeanDefinitionTest.testBeanTypesNonEmpty()
org.jboss.tools.cdi.core.test.tck.BeanDefinitionTest.testQualifiersNonEmpty()
org.jboss.tools.cdi.core.test.tck.BeanDefinitionTest.testHasScopeType()
org.jboss.tools.cdi.core.test.tck.BeanDefinitionTest.testPrivitiveTypes()
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 6 months
[JBoss JIRA] Created: (JBIDE-6147) Scope type for directly extended managed bean annotated @Inherited should be inherited.
by Alexey Kazakov (JIRA)
Scope type for directly extended managed bean annotated @Inherited should be inherited.
---------------------------------------------------------------------------------------
Key: JBIDE-6147
URL: https://jira.jboss.org/jira/browse/JBIDE-6147
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: cdi (jsr-299)
Affects Versions: 3.2.next
Reporter: Alexey Kazakov
Assignee: Viacheslav Kabanovich
Fix For: 3.2.next
Suppose a class X is extended directly or indirectly by the bean class of a managed bean or session bean Y. If X is annotated with a scope type Z then Y inherits the annotation if and only if Z declares the @Inherited meta-annotation and neither Y nor any intermediate class that is a subclass of X and a superclass of Y declares a scope type
See JSR-299 Spec. 4.1. Inheritance of type-level metadata
org.jboss.tools.cdi.core.test.tck.ScopeDefinitionTest.testScopeTypeDeclaredInheritedIsInherited() must pass.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 6 months
[JBoss JIRA] Created: (JBIDE-6146) Wrong default scope for CDI bean.
by Alexey Kazakov (JIRA)
Wrong default scope for CDI bean.
---------------------------------
Key: JBIDE-6146
URL: https://jira.jboss.org/jira/browse/JBIDE-6146
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: cdi (jsr-299)
Affects Versions: 3.2.next
Reporter: Alexey Kazakov
Assignee: Viacheslav Kabanovich
Fix For: 3.2.next
Following bean must have javax.enterprise.context.Dependent default scope:
package org.jboss.jsr299.tck.tests.definition.scope;
class Order{}
org.jboss.tools.cdi.core.test.tck.ScopeDefinitionTest.testDefaultScope() must pass.
See JSR-299 Spec:
2.4.4. Default scope
When no scope is explicitly declared by annotating the bean class or producer method or field the scope of a bean is defaulted.
The default scope for a bean which does not explicitly declare a scope depends upon its declared stereotypes:
• If the bean does not declare any stereotype with a declared default scope, the default scope for the bean is @Dependent.
• If all stereotypes declared by the bean that have some declared default scope have the same default scope, then that
scope is the default scope for the bean.
• If there are two different stereotypes declared by the bean that declare different default scopes, then there is no default
scope and the bean must explicitly declare a scope. If it does not explicitly declare a scope, the container automatically
detects the problem and treats it as a definition error.
If a bean explicitly declares a scope, any default scopes declared by stereotypes are ignored.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 6 months