public class UnwrappingRepositoryInvokerFactory extends Object implements org.springframework.data.repository.support.RepositoryInvokerFactory
RepositoryInvokerFactory
that wraps the RepositoryInvokerFactory
returned by the delegate with one
that automatically unwraps JDK 8 Optional
and Guava com.google.common.base.Optional
s.Constructor and Description |
---|
UnwrappingRepositoryInvokerFactory(org.springframework.data.repository.support.RepositoryInvokerFactory delegate,
List<? extends EntityLookup<?>> lookups) |
Modifier and Type | Method and Description |
---|---|
org.springframework.data.repository.support.RepositoryInvoker |
getInvokerFor(Class<?> domainType) |
public UnwrappingRepositoryInvokerFactory(org.springframework.data.repository.support.RepositoryInvokerFactory delegate, List<? extends EntityLookup<?>> lookups)
delegate
- must not be null.lookups
- must not be null.public org.springframework.data.repository.support.RepositoryInvoker getInvokerFor(Class<?> domainType)
getInvokerFor
in interface org.springframework.data.repository.support.RepositoryInvokerFactory
Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.