This is the JEE Plugin of jQAssistant.
It provides concepts, constraints, and scanners for the following aspects:
-
CDI, e.g.
-
producer
-
injection points
-
interceptors
-
decorators
-
scopes
-
event producer
-
event consumer
-
-
EJB 3, e.g.
-
remote beans
-
local beans
-
stateful session beans
-
singleton beans
-
message driven beans
-
scheduled methods
-
-
Java EE 6, e.g.
-
Web Application Archives
-
Enterprise ARchive
-
-
JPA 2, e.g.
-
entities
-
persistence units
-
named queries
-
Technology | Constraint | Description |
---|---|---|
CDI |
cdi:BeansMustUseConstructorInjection |
All CDI beans must use constructor injection. |
CDI |
cdi:BeansMustNotUseFieldInjection |
CDI beans shall not use field injection (constructor and setter injections are fine.). |
EJB 3 |
ejb3:ScheduleMethodInEjbContext |
Check that Schedule methods are only declared in EJB classes. |
JPA 2 |
jpa2:ValidationModeMustBeExplicitlySpecified |
The validation mode of all persistence units must be explicitly specified and either set to CALLBACK or NONE. |
- NOTE
-
This plug-in supersedes the previously separated plugins for CDI, EJB3, JPA2, and JEE6.
- NOTE
-
From jQAssistant v2.0.0 onwards, it is not part of the core distribution anymore and a manual configuration as shown below is required.
jqassistant:
plugins:
- group-id: org.jqassistant.plugin (1)
artifact-id: jqassistant-jee-plugin
version: ${jqassistant.jee-plugin.version}
-
Dependency to the JEE plugin