Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What sorts of rules can Macker check?

macker rules sorts
0
Posted

What sorts of rules can Macker check?

0

Macker allows you to specify broad access rules that Java’s native access modifiers can’t. The current version supports class- and package-level access rules, such as: • Classes in the UI layer may not directly access the data object layer, or use classes in java.sql. • External systems may not access internal implementation classes (suffixed with ‘Impl’). • One functional module may access another only through its API. • Only classes implementing interfaces in javax.ejb, and certain framework packages, may use the EJB APIs. (All of these are all just examples. Macker doesn’t check anything by default; it’s up to you to write rules to fit what you’re doing.) Future versions will support more sophisticated matching class matching, existence/nonexistence rules in addition to access rules, and possibly rules applying at the method as well the class level. This would allow rules such as: • Classes implementing the SessionBean interface must have the suffix ‘EJB’. • Methods should take and

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123