Skip to content

DATACMNS-406 - Tighten contract for RepositoryMetadata implementations. #58

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

Closed
wants to merge 3 commits into from

Conversation

thomasdarimont
Copy link

We now resolve the domain- and id-types eagerly within the constructor of AbstractRepositoryMetadata implementations to prevent a RepositoryMetadata instance to be created in an invalid state.
Pulled-up repositoryInterface property to AbstractRepositoryMetadata.

this.repositoryInterface = repositoryInterface;
Assert.isTrue(Repository.class.isAssignableFrom(repositoryInterface), MUST_BE_A_REPOSITORY);

Class<? extends Serializable> idType = resolveIdType(repositoryInterface);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could be assigned to the field directly.

Thomas Darimont and others added 2 commits November 21, 2013 11:47
We now resolve the domain- and id-types eagerly within the constructor of AbstractRepositoryMetadata implementations to prevent a RepositoryMetadata instance to be created in an invalid state.
Pulled-up repositoryInterface property to AbstractRepositoryMetadata.
Refactored code in RepositoryMetadata implementations to avoid compiler warnings. Some JavaDoc polishing.
thomasdarimont pushed a commit that referenced this pull request Nov 21, 2013
We now resolve the domain and id-types eagerly within the constructor of AbstractRepositoryMetadata implementations to prevent a RepositoryMetadata instance to be created in an invalid state. Pulled-up repositoryInterface property to AbstractRepositoryMetadata.

Original pull request: #58.
odrotbohm added a commit that referenced this pull request Nov 21, 2013
Refactored code in RepositoryMetadata implementations to avoid compiler warnings. Some JavaDoc polishing.

Original pull request: #58.
@odrotbohm odrotbohm closed this Nov 21, 2013
@odrotbohm odrotbohm deleted the issue/DATACMNS-406 branch November 21, 2013 11:32
thomasdarimont pushed a commit that referenced this pull request Nov 21, 2013
We now resolve the domain and id-types eagerly within the constructor of AbstractRepositoryMetadata implementations to prevent a RepositoryMetadata instance to be created in an invalid state. Pulled-up repositoryInterface property to AbstractRepositoryMetadata.

Original pull request: #58.
odrotbohm added a commit that referenced this pull request Nov 21, 2013
Refactored code in RepositoryMetadata implementations to avoid compiler warnings. Some JavaDoc polishing.

Original pull request: #58.
thomasdarimont pushed a commit that referenced this pull request Nov 22, 2013
We now resolve the domain and id-types eagerly within the constructor of AbstractRepositoryMetadata implementations to prevent a RepositoryMetadata instance to be created in an invalid state. Pulled-up repositoryInterface property to AbstractRepositoryMetadata.

Original pull request: #58.
odrotbohm added a commit that referenced this pull request Nov 22, 2013
Refactored code in RepositoryMetadata implementations to avoid compiler warnings. Some JavaDoc polishing.

Original pull request: #58.
Aloren pushed a commit to Aloren/spring-data-commons that referenced this pull request Jun 20, 2019
See also the integration tests in spring-cloud-samples/tests

Fixes spring-projectsgh-58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants