Class InstantiatorProvider
java.lang.Object
org.dalesbred.internal.instantiation.InstantiatorProvider
Provides
Instantiator
s for classes.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> @NotNull Instantiator<T>
findInstantiator
(@NotNull Class<T> type, @NotNull NamedTypeList types) @NotNull Instantiator<?>
findInstantiator
(@NotNull Type type, @NotNull NamedTypeList types) @NotNull TypeConversion
getConversionFromDbValue
(@NotNull Type source, @NotNull Type target) Returns conversion for converting value of source-type to target-type, or throws exception if there's no such conversion.@NotNull TypeConversionRegistry
@Nullable Object
valueToDatabase
(@Nullable Object value)
-
Constructor Details
-
InstantiatorProvider
-
-
Method Details
-
valueToDatabase
-
findInstantiator
@NotNull public <T> @NotNull Instantiator<T> findInstantiator(@NotNull @NotNull Class<T> type, @NotNull @NotNull NamedTypeList types) -
findInstantiator
@NotNull public @NotNull Instantiator<?> findInstantiator(@NotNull @NotNull Type type, @NotNull @NotNull NamedTypeList types) -
getConversionFromDbValue
@NotNull public @NotNull TypeConversion getConversionFromDbValue(@NotNull @NotNull Type source, @NotNull @NotNull Type target) Returns conversion for converting value of source-type to target-type, or throws exception if there's no such conversion. -
getTypeConversionRegistry
-