@Component(value="tapirElementProxyFactory") public class TapirElementProxyFactory extends Object
TapirElements
or lists von
TapirElements
.Constructor and Description |
---|
TapirElementProxyFactory() |
Modifier and Type | Method and Description |
---|---|
<T extends TapirElement> |
getTapirElementListProxy(com.google.common.reflect.TypeToken<?> listElementTypeToken,
CacheInvalidator parentCacheInvalidator,
Supplier<List<TapirElement>> query)
Returns an intercepted instance of the list of
TapirElements which is supplied by the given query. |
<T extends TapirElement> |
getTapirElementProxy(com.google.common.reflect.TypeToken<?> typeToken,
CacheInvalidator parentCacheInvalidator,
Supplier<TapirElement> query)
Returns an intercepted instance of the
TapirElement which is supplied by the given query. |
public <T extends TapirElement> T getTapirElementProxy(com.google.common.reflect.TypeToken<?> typeToken, CacheInvalidator parentCacheInvalidator, Supplier<TapirElement> query)
TapirElement
which is supplied by the given query.T
- The type of the TapirElement
typeToken
- the type token of the TapirElement
parentCacheInvalidator
- offers the possibility to invalidate the cache of the containing tapir element(s)query
- the query to get the TapirElement which should be interceptedTapirElement
public <T extends TapirElement> T getTapirElementListProxy(com.google.common.reflect.TypeToken<?> listElementTypeToken, CacheInvalidator parentCacheInvalidator, Supplier<List<TapirElement>> query)
TapirElements
which is supplied by the given query.T
- The type of the TapirElements
in the listlistElementTypeToken
- the type token of the TapirElements
in the listparentCacheInvalidator
- offers the possibility to invalidate the cache of the containing tapir element(s)query
- the query to get the TapirElement list which should be interceptedTapirElement
listCopyright © 2018–2021 b+m Informatik AG. All rights reserved.