Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The syntax should allow to specify what classes should ONLY access #84

Closed
codecholeric opened this issue Jun 29, 2018 · 0 comments
Closed

Comments

@codecholeric
Copy link
Collaborator

While it is easy to do black listing

noClasses().that().resideInAPackage("..foo..").should().accessClassesThat().resideInAPackage("..bar..")

and to control access TO a component

classes().that().resideInAPackage("..bar..").should().onlyBeAccessed().byAnyPackage("..foo..")

it is rather hard to specify that ..foo.. should only access ..bar... The closest way out of the box would be an awkward double negation

noClasses().that().resideInAPackage("..foo..").should().accessClassesThat().resideOutsideOfPackage("..bar..")

It should be possible to specify

classes().that().resideInAPackage("..foo..").should().onlyAccessClassesThat().resideInAPackage("..bar..")

Likewise this should be supported for callMethod, callConstructor and accessField and flavors.

@codecholeric codecholeric changed the title The syntax should allow to specify who classes should ONLY access The syntax should allow to specify what classes should ONLY access Aug 11, 2018
codecholeric added a commit that referenced this issue Aug 18, 2018
Issue: #84
Signed-off-by: Peter Gafert <peter.gafert@tngtech.com>
codecholeric added a commit that referenced this issue Aug 18, 2018
Issue: #84
Signed-off-by: Peter Gafert <peter.gafert@tngtech.com>
codecholeric added a commit that referenced this issue Aug 18, 2018
Issue: #84
Signed-off-by: Peter Gafert <peter.gafert@tngtech.com>
codecholeric added a commit that referenced this issue Aug 18, 2018
Issue: #84
Signed-off-by: Peter Gafert <peter.gafert@tngtech.com>
codecholeric added a commit that referenced this issue Aug 18, 2018
Issue: #84
Signed-off-by: Peter Gafert <peter.gafert@tngtech.com>
codecholeric added a commit that referenced this issue Aug 18, 2018
Issue: #84
Signed-off-by: Peter Gafert <peter.gafert@tngtech.com>
codecholeric added a commit that referenced this issue Aug 18, 2018
Issue: #84
Signed-off-by: Peter Gafert <peter.gafert@tngtech.com>
codecholeric added a commit that referenced this issue Aug 18, 2018
Issue: #84
Signed-off-by: Peter Gafert <peter.gafert@tngtech.com>
codecholeric added a commit that referenced this issue Aug 18, 2018
Issue: #84
Signed-off-by: Peter Gafert <peter.gafert@tngtech.com>
codecholeric added a commit that referenced this issue Aug 18, 2018
Issue: #84
Signed-off-by: Peter Gafert <peter.gafert@tngtech.com>
codecholeric added a commit that referenced this issue Aug 18, 2018
Issue: #84
Signed-off-by: Peter Gafert <peter.gafert@tngtech.com>
codecholeric added a commit that referenced this issue Aug 18, 2018
Issue: #84
Signed-off-by: Peter Gafert <peter.gafert@tngtech.com>
codecholeric added a commit that referenced this issue Aug 18, 2018
Issue: #84
Signed-off-by: Peter Gafert <peter.gafert@tngtech.com>
codecholeric added a commit that referenced this issue Aug 18, 2018
Issue: #84
Signed-off-by: Peter Gafert <peter.gafert@tngtech.com>
codecholeric added a commit that referenced this issue Aug 18, 2018
Issue: #84
Signed-off-by: Peter Gafert <peter.gafert@tngtech.com>
@codecholeric codecholeric added this to the 0.9.0 milestone Aug 19, 2018
codecholeric added a commit that referenced this issue Feb 21, 2021
Issue: #84
Signed-off-by: Peter Gafert <peter.gafert@tngtech.com>
codecholeric added a commit that referenced this issue Feb 21, 2021
Issue: #84
Signed-off-by: Peter Gafert <peter.gafert@tngtech.com>
codecholeric added a commit that referenced this issue Feb 21, 2021
Issue: #84
Signed-off-by: Peter Gafert <peter.gafert@tngtech.com>
codecholeric added a commit that referenced this issue Feb 21, 2021
Issue: #84
Signed-off-by: Peter Gafert <peter.gafert@tngtech.com>
codecholeric added a commit that referenced this issue Feb 21, 2021
Issue: #84
Signed-off-by: Peter Gafert <peter.gafert@tngtech.com>
codecholeric added a commit that referenced this issue Feb 21, 2021
Issue: #84
Signed-off-by: Peter Gafert <peter.gafert@tngtech.com>
codecholeric added a commit that referenced this issue Feb 21, 2021
Issue: #84
Signed-off-by: Peter Gafert <peter.gafert@tngtech.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant