public class UnwrappingRepositoryInvokerFactory extends Object implements 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(RepositoryInvokerFactory delegate)
Creates a new
UnwrappingRepositoryInvokerFactory . |
Modifier and Type | Method and Description |
---|---|
RepositoryInvoker |
getInvokerFor(Class<?> domainType) |
public UnwrappingRepositoryInvokerFactory(RepositoryInvokerFactory delegate)
UnwrappingRepositoryInvokerFactory
.delegate
- must not be null.public RepositoryInvoker getInvokerFor(Class<?> domainType)
getInvokerFor
in interface RepositoryInvokerFactory
Copyright © 2011-2015–2016 Pivotal Software, Inc.. All rights reserved.