Package it.tidalwave.util.spi
Interface AsDelegateProvider
-
- All Known Implementing Classes:
AsDelegateProvider.EmptyAsDelegateProvider,SpringAsDelegateProvider
public interface AsDelegateProvider- Author:
- Fabrizio Giudici
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classAsDelegateProvider.EmptyAsDelegateProviderstatic classAsDelegateProvider.Locator
-
Field Summary
Fields Modifier and Type Field Description static java.lang.Class<AsDelegateProvider>_AsDelegateProvider_
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description AsDelegatecreateAsDelegate(java.lang.Object datum)Creates anAsDelegatefor the given objectstatic AsDelegateProviderempty()Returns an empty implementation.
-
-
-
Field Detail
-
_AsDelegateProvider_
static final java.lang.Class<AsDelegateProvider> _AsDelegateProvider_
-
-
Method Detail
-
createAsDelegate
@Nonnull AsDelegate createAsDelegate(@Nonnull java.lang.Object datum)
Creates anAsDelegatefor 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
-
-