[JBoss JIRA] (CDI-192) Unify coding style of the SPI interfaces
by Jozef Hartinger (Created) (JIRA)
Unify coding style of the SPI interfaces
----------------------------------------
Key: CDI-192
URL: https://issues.jboss.org/browse/CDI-192
Project: CDI Specification Issues
Issue Type: Bug
Components: Portable Extensions
Affects Versions: 1.1.EDR1
Reporter: Jozef Hartinger
Priority: Trivial
Fix For: 1.1 (Proposed)
The [JLS|http://java.sun.com/docs/books/jls/third_edition/html/interfaces.html...] says:
{quote}
For compatibility with older versions of the Java platform, it is permitted but discouraged, as a matter of style, to redundantly specify the abstract modifier for methods declared in interfaces.
It is permitted, but strongly discouraged as a matter of style, to redundantly specify the public modifier for interface methods.
{quote}
The vast majority of CDI API interfaces specifies the public modifier while leaving out the abstract modifier, however, there are exceptions:
{code:JAVA}
public interface Context {
...
boolean isActive();
}
{code}
{code:JAVA}
public interface BeanAttributes<T> {
public abstract Set<Type> getTypes();
public abstract Set<Annotation> getQualifiers();
...
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 4 months
[JBoss JIRA] (CDI-209) BeanManager.createProducer missing in the API
by Jozef Hartinger (JIRA)
Jozef Hartinger created CDI-209:
-----------------------------------
Summary: BeanManager.createProducer missing in the API
Key: CDI-209
URL: https://issues.jboss.org/browse/CDI-209
Project: CDI Specification Issues
Issue Type: Bug
Components: Portable Extensions
Affects Versions: 1.1.EDR1
Reporter: Jozef Hartinger
Fix For: 1.1 (Proposed)
The spec says:
{quote}
The method BeanManager.createProducer() returns a container provided implementation of Producer for a given AnnotatedMethod or AnnotatedField or throws an IllegalArgumentException if there is a definition error associated with the producer method or field.
{quote}
However, the createProducer() method is not defined in the API.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 4 months
Problem with CDI and weblogic
by Mehdi Heidarzadeh
Hi @all
I have a bean annotated with @Named and @RequestScoped.
It is working perfectly in Glassfish 3.1.2 but when I deploy it in Weblogic
12.1.1 I get the following error!
Caused By: org.jboss.weld.exceptions.DefinitionException: WELD-000075
Normal scoped managed bean implementation class has a public field:
public@Named @RequestScoped class
com.x.y.web.monitoring.MonitoringController
I don't have any public field in my bean!!! all of them are private and I
use getters and setters.
Is this a bug in weblogic 12.1.1 ?
How can I update weld version in weblogic?
Thanks in advance.
--
Mehdi Heidarzadeh Ardalani
Independent JEE Consultant, Architect and Developer.
http://www.TheBigJavaBlog.com
12 years, 7 months
@NonBinding Array[]
by Romain Manni-Bucau
Hi,
wonder if there is a reason why the behavior associated to an array
without @NonBinding annotation in qualifier is "depending on the
implementation".
Any known reason?
- Romain
12 years, 7 months
Spec clarification on what scopes are active during @PostConstruct of remote EJBs or @Startup
by Joseph Bergmark
The 1.0 spec doesn't appear to directly address if even the application
scope is active during @PostConstruct for remote EJBs or @Startup EJBs, but
does somewhat address @PreDestroy callback. A previous thread in March
brought up supporting request scope in @PostConstruct as well. Is it worth
opening an issue to track this, or am I missing something that currently
makes this clear?
Sincerely,
Joe Bergmark
WebSphere Development
bergmark(a)us.ibm.com
12 years, 7 months
How to process the scope in JEE7
by Hantsy Bai
Hi,
CDI introduced NormalScope to create custom scope, I noticed there is
another similar one in the JSR330, @Scope(and @Singleton) annotation,
and there is also another "State management" standalone spec in JEE7.
Is there some cooperation with them in JEE7? and what is the successor
of JSR 330 in JEE7?
Regards
Hantsy
12 years, 7 months
CDI have any plan to process Transaction?
by Hantsy Bai
Hi,
I have read some content about the spec 1.1, but I want to know if there
is a plan to provide a new transaction annotation...for EBJ or none EJB
proramming.
For example, provide a @Transactional annotation like Seam2 or Spring
3.1...and make it work in Servlet container(none JTA transation, jdbc
only) or full profile container such as JBoss, Glassfish(JTA transaction
by default) seamlessly.
Automatically detect the Transaction will be used, or configure in
beans.xml file.
Regards
Hantsy
12 years, 8 months