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

Extend slice creation #156

Merged
merged 2 commits into from
Mar 10, 2019
Merged

Extend slice creation #156

merged 2 commits into from
Mar 10, 2019

Conversation

codecholeric
Copy link
Collaborator

In legacy projects it is often necessary to further customize the way slices are created (more than simple package matching like '..myapp.(*)..').
This PR extends the slices API to freely create slices by defining a custom mapping from JavaClass to SliceIdentifier where two classes mapped to the same identifier will end up in the same slice.

…e package structure might not be as neat as myapp.(*) where * catches all reasonable domain slices. Instead it might be necessary to really tweak which classes from which locations form a 'slice'. The new approach allows to freely define a mapping JavaClass -> SliceIdentifier to group arbitrary classes together into one slice (defined by the common SliceIdentifier).

Signed-off-by: Peter Gafert <peter.gafert@tngtech.com>
Signed-off-by: Peter Gafert <peter.gafert@tngtech.com>
@ghost
Copy link

ghost commented Mar 10, 2019

DeepCode analyzed this pull request.
There is 1 new info report.

Click to see more details.

@codecholeric codecholeric merged commit c32d5b3 into master Mar 10, 2019
@codecholeric codecholeric deleted the extend_slice_creation branch March 10, 2019 20:39
codecholeric added a commit that referenced this pull request Feb 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant