DATACMNS-1289 - Polishing.

Original pull request: #280.
This commit is contained in:
Oliver Gierke
2018-04-06 15:14:49 +02:00
parent 142c9ddb5c
commit 5e2e51b7a0
2 changed files with 7 additions and 1 deletions

View File

@@ -161,6 +161,12 @@ public interface RepositoryFragment<T> {
private final Optional<Class<T>> interfaceClass;
private final T implementation;
/**
* Creates a new {@link ImplementedRepositoryFragment} for the given interface class and implementation.
*
* @param interfaceClass must not be {@literal null}.
* @param implementation must not be {@literal null}.
*/
public ImplementedRepositoryFragment(Optional<Class<T>> interfaceClass, T implementation) {
Assert.notNull(interfaceClass, "Interface class must not be null!");