/** * Creates a new {@link RepositoryMetadata} for the given repository interface. * * @param repositoryInterface must not be {@literal null}. * @since 1.9 * @return */ public static RepositoryMetadata getMetadata(Class<?> repositoryInterface) { Assert.notNull(repositoryInterface, "Repository interface must not be null!"); return Repository.class.isAssignableFrom(repositoryInterface) ? new DefaultRepositoryMetadata(repositoryInterface) : new AnnotationRepositoryMetadata(repositoryInterface); }
/** * Returns the {@link RepositoryMetadata} for the given repository interface. * * @param repositoryInterface * @return */ RepositoryMetadata getRepositoryMetadata(Class<?> repositoryInterface) { return Repository.class.isAssignableFrom(repositoryInterface) ? new DefaultRepositoryMetadata(repositoryInterface) : new AnnotationRepositoryMetadata(repositoryInterface); }