Class AcceptableInjectionDesignOrError
java.lang.Object
org.ek9lang.compiler.phase5.AcceptableInjectionDesignOrError
- All Implemented Interfaces:
Consumer<org.antlr.v4.runtime.tree.ParseTree>
final class AcceptableInjectionDesignOrError
extends Object
implements Consumer<org.antlr.v4.runtime.tree.ParseTree>
Validates DI injection design quality for components (E11040).
Checks that a component does not have too many injected fields, which would violate the Single Responsibility Principle.
Research basis:
- Martin, R.C.: Clean Architecture - max 4 constructor parameters
- Seemann, M.: Dependency Injection in .NET - injection count limits
- Shatnawi, R.: IEEE 2010 - coupling and defect correlation
-
Constructor Summary
ConstructorsConstructorDescriptionAcceptableInjectionDesignOrError(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener) -
Method Summary
-
Constructor Details
-
AcceptableInjectionDesignOrError
AcceptableInjectionDesignOrError(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener)
-
-
Method Details
-
accept
-