Package it.tidalwave.util.spi
Interface AsDelegateProvider
-
- All Known Implementing Classes:
AsDelegateProvider.EmptyAsDelegateProvider
,SimpleAsDelegateProvider
,SpringAsDelegateProvider
public interface AsDelegateProvider
- Author:
- Fabrizio Giudici
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
AsDelegateProvider.EmptyAsDelegateProvider
static class
AsDelegateProvider.Locator
-
Field Summary
Fields Modifier and Type Field Description static LazySupplier<AsDelegateProvider.EmptyAsDelegateProvider>
EMPTY_REF
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description AsDelegate
createAsDelegate(java.lang.Object datum)
Creates anAsDelegate
for the given objectstatic AsDelegateProvider
empty()
Returns an empty implementation.
-
-
-
Field Detail
-
EMPTY_REF
static final LazySupplier<AsDelegateProvider.EmptyAsDelegateProvider> EMPTY_REF
-
-
Method Detail
-
createAsDelegate
@Nonnull AsDelegate createAsDelegate(@Nonnull java.lang.Object datum)
Creates anAsDelegate
for the given object- Parameters:
datum
- the object- Returns:
AsDelegate
-
empty
@Nonnull static AsDelegateProvider empty()
Returns an empty implementation. Useful for setting up test environment.AsDelegateProvider.Locator.set(AsDelegateProvider.empty());
- Returns:
- the empty implementation
- Since:
- 3.2-ALPHA-1
-
-