Skip to content

Latest commit

 

History

History
74 lines (58 loc) · 1.85 KB

readme.adoc

File metadata and controls

74 lines (58 loc) · 1.85 KB

jQAssistant JEE Plugin

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

Available Constraints

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.

Using the jqassistant-jee-plugin

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}
  1. Dependency to the JEE plugin