CDI tools 3.2.0.CR1 What's New

< Main Index Hibernate Tools News >


Wizards


New CDI Bean Wizard

New CDI Bean wizard is now avaliable.

Related Jira


New Annotation Literal Wizard

New Annotation Literal wizard for selected qualifier:

Related Jira


New beans.xml Wizard

New beans.xml wizard is now available:

Related Jira


Keywords for CDI Wizards

Now it's possible to open CDI wizards using keywords such as cdi, bean, etc.:

Related Jira


CDI Configuration Preset.

New CDI configuration preset for Dynamic Web Project wizard is now available.

Related Jira


CDI Facet Install Page.

There is no need to create a beans.xml file manually anymore when CDI facet is installed.

Related Jira


Project Validation


CDI deployment problems validation.

The following CDI deployment problems described in JSR-299 Specification are now validated:

    - Inconsistent specialization (JSR-299 5.1.3);
    - Ambiguous EL names (JSR-299 5.3.1);
    - Unproxyable bean types (JSR-299 5.4.1);
    - Decorator resolution (JSR-299 8.3);

Notice that the validator warning/error reference the section of the JSR-299 specification it relates to.

Related Jira


CDI annotation types validation.

There are also a few new validation rules for @Target for CDI annotations:

    - Interceptor binding types declared @Target(TYPE) may not be applied to interceptor binding types declared @Target({TYPE, METHOD}) (JSR-299 9.1.1);
    - If a stereotype declares interceptor bindings, it must be defined as @Target(TYPE) (JSR-299 9.1.2);
    - Stereotypes declared @Target(TYPE) may not be applied to stereotypes declared @Target({TYPE, METHOD, FIELD}), @Target(METHOD), @Target(FIELD) or @Target({METHOD, FIELD}). (JSR-299 2.7.1.5);

Related Jira 1, Related Jira 2, Related Jira 3


Quick Fixes


Non-static method of a session bean is annotated @Produces, and the method is not a business method of the session bean

A few Quick Fixes for non-business methods of a session bean class which are annotated @Produces are now avaliable.



Related Jira


Non-static field of a session bean is annotated @Produces

If a non-static field of a session bean class is annotated @Produces then this field can be made static via Quick Fix menu

Related Jira


Bean class has more than one constructor annotated @Inject

If a bean class has more than one constructor annotated @Inject then the annotation can be removed from duplicated injected constructors via Quick Fix menu

Related Jira


Multiple disposer methods for a single producer method

If there are multiple disposer methods for a single producer method then @Disposes annotation can be removed from all the duplicated methods except the seleceted one via Quick Fix menu

Related Jira


Non-static method of a session bean has a parameter annotated @Disposes/@Observes

If a non-static method of a session bean class has a parameter annotated @Disposes/@Observes then this method can be made a business method of the session bean via Quick Fix menu

Related Jira