Forbids usage Certain Imports usage in class.
idea was taken from similar check in Sonar project.
- Package name. (type=regexp)
- Forbidden package name in imports. (type=regexp)
Example of usage:
Forbid to use ".log4j." classes/packages in imports in all ("") packages
Forbid to use ".ui." packages in ".dao.*" packages
By means of few instances of this check will be possible to check any number of rules.