Package de.bmiag.tapir.selenium.element
Class TapirElementProxyFactory
- java.lang.Object
-
- de.bmiag.tapir.selenium.element.TapirElementProxyFactory
-
@Component("tapirElementProxyFactory") public class TapirElementProxyFactory extends java.lang.Object
Responsible or building interceptors which intercept calls toTapirElements
or lists vonTapirElements
.- Since:
- 2.0.0
- Author:
- Oliver Libutzki <[email protected]>
-
-
Constructor Summary
Constructors Constructor Description TapirElementProxyFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends TapirElement>
TgetTapirElementListProxy(com.google.common.reflect.TypeToken<?> listElementTypeToken, CacheInvalidator parentCacheInvalidator, java.util.function.Supplier<java.util.List<TapirElement>> query)
Returns an intercepted instance of the list ofTapirElements
which is supplied by the given query.<T extends TapirElement>
TgetTapirElementProxy(com.google.common.reflect.TypeToken<?> typeToken, CacheInvalidator parentCacheInvalidator, java.util.function.Supplier<TapirElement> query)
Returns an intercepted instance of theTapirElement
which is supplied by the given query.
-
-
-
Method Detail
-
getTapirElementProxy
public <T extends TapirElement> T getTapirElementProxy(com.google.common.reflect.TypeToken<?> typeToken, CacheInvalidator parentCacheInvalidator, java.util.function.Supplier<TapirElement> query)
Returns an intercepted instance of theTapirElement
which is supplied by the given query.- Type Parameters:
T
- The type of theTapirElement
- Parameters:
typeToken
- the type token of theTapirElement
parentCacheInvalidator
- offers the possibility to invalidate the cache of the containing tapir element(s)query
- the query to get the TapirElement which should be intercepted- Returns:
- the intercepted
TapirElement
-
getTapirElementListProxy
public <T extends TapirElement> T getTapirElementListProxy(com.google.common.reflect.TypeToken<?> listElementTypeToken, CacheInvalidator parentCacheInvalidator, java.util.function.Supplier<java.util.List<TapirElement>> query)
Returns an intercepted instance of the list ofTapirElements
which is supplied by the given query.- Type Parameters:
T
- The type of theTapirElements
in the list- Parameters:
listElementTypeToken
- the type token of theTapirElements
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 intercepted- Returns:
- the intercepted
TapirElement
list
-
-