public interface RepositoryFactory
A default implementation is provided via default repositor factory.
| Modifier and Type | Method and Description |
|---|---|
RepositoryFactoryConfiguration |
getConfiguration() |
<E> E |
getInstance(KeyGenerator<?> keyGenerator,
Class<E> repositoryInterface,
Class... implementations)
Creates an instance of the repository as per the provided configuration.
|
<E> E getInstance(KeyGenerator<?> keyGenerator, Class<E> repositoryInterface, Class... implementations)
E - the type of the interfacekeyGenerator - the key generator to use when inserting items (if auto generation is
required). You can specify a null key generator to signify that the fallback key generator should
be used when generating keys.repositoryInterface - the repository interface which we want to mockimplementations - all the concrete classes that can be used to figure out method mappingsRepositoryMockException - should anything go wrongRepositoryFactoryConfiguration getConfiguration()
Copyright © 2014–2021. All rights reserved.