I\'m not even sure if this is doable but I want to ask the community for their general opinion.
I have to solve a following problem:
My Project has 2 Layers,
This can be achieved by using AspectJ. You can write rules in AspectJ-syntax which will give build-time-errors if not enforced. See the article Archtectual Enforcement with Aid of AspectJ for an example.