You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, I am using jMolecules and ArchUnit to verify my project's structure. I prefer to use jMolecules annotations in package-info.java files.
However, I would like customize the default layouts, e.g. LayeredStrict. I would like to allow API to access DOMAIN directly, but I don't want to use the simple Layered layout, which allows a lot more dependencies.
I cannot really customize that, but still use the jMolecules annotation because many things JMoleculesArchitectureRules are private or package protected and cannot really work around them.
For example, I cannot easily create my own ensureLayeredCustom() method, because I cannot access LayeredArchitecture::layeredArchitecture(StereotypeLookup lookup) - it is private.
I cannot weite my own l layeredArchitecture(StereotypeLookup lookup) methods, because I cannot access StereotypeLookup::forAnnotation(...) because it is protected.
So, tl;dr - my question is: Can I customize the allowed dependencies, but still use jMolecules annotations? I don't wan't to switch to defining packages in the ArchUnit test, that define the layers.
Cheers!
Stefan
The text was updated successfully, but these errors were encountered:
Hey, I am using jMolecules and ArchUnit to verify my project's structure. I prefer to use jMolecules annotations in
package-info.java
files.However, I would like customize the default layouts, e.g. LayeredStrict. I would like to allow API to access DOMAIN directly, but I don't want to use the simple Layered layout, which allows a lot more dependencies.
I cannot really customize that, but still use the jMolecules annotation because many things
JMoleculesArchitectureRules
are private or package protected and cannot really work around them.For example, I cannot easily create my own
ensureLayeredCustom()
method, because I cannot accessLayeredArchitecture::layeredArchitecture(StereotypeLookup lookup)
- it is private.I cannot weite my own l
layeredArchitecture(StereotypeLookup lookup)
methods, because I cannot accessStereotypeLookup::forAnnotation(...)
because it is protected.So, tl;dr - my question is: Can I customize the allowed dependencies, but still use jMolecules annotations? I don't wan't to switch to defining packages in the ArchUnit test, that define the layers.
Cheers!
Stefan
The text was updated successfully, but these errors were encountered: