Package ch.tocco.nice2.types.api
Class AbstractTypeAdapter
java.lang.Object
ch.tocco.nice2.types.api.AbstractTypeAdapter
- All Implemented Interfaces:
TypeReceivable
- Direct Known Subclasses:
IntegerValidatorTypeAdapter
,PasswordValidatorTypeAdapter
,StringValidatorTypeAdapter
,TextValidatorTypeAdapter
Generic abstract base class that may be used by type adapter contribution implementations.
This base class provides a reference to the type for which it was instantiated. This can come in handy for example when using the same adapter for multiple types.
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
type
It may come in useful because this same Adapter type can be configured for multiple types.
-
-
Constructor Details
-
AbstractTypeAdapter
public AbstractTypeAdapter()
-
-
Method Details
-
setType
Description copied from interface:TypeReceivable
Called by the TypeManager when creating a TypeAdapter in setAdaptersConfig().- Specified by:
setType
in interfaceTypeReceivable
- Parameters:
type
- The type for which this Adapter is configured.
-