public interface ObjectValueTypeWidenerFactory
Modifier and Type | Method and Description |
---|---|
com.espertech.esper.common.internal.util.TypeWidenerSPI |
make(ObjectValueTypeWidenerFactoryContext context)
Returns a type widener or coercer.
|
com.espertech.esper.common.internal.util.TypeWidenerSPI make(ObjectValueTypeWidenerFactoryContext context)
Implementations can provide custom widening behavior from an object to a a widened, coerced or related object value.
Implementations should check whether an object value is assignable with or without coercion or widening.
This method can return null to use the default widening behavior.
Throw UnsupportedOperationException
to indicate an unsupported widening or coercion(default behavior checking still applies if no exception is thrown)
context
- contextjava.lang.UnsupportedOperationException
- to indicate an unsupported assignment (where not already covered by the default checking)