@Deprecated public final class SerializerMethodLoader extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
SerializerMethodLoader.Serializer<T>
Deprecated.
Creates new static serializer object.
|
Modifier and Type | Method and Description |
---|---|
static <T,V extends SerializerMethodLoader.Serializer<T>> |
getSerializer(Class<T> encapsulatingClass,
Class<V> desiredReturnType,
String methodName,
boolean allowSuperClass)
Deprecated.
Invokes a static method named
methodName on class
encapsulatingClass , which is supposed to have no arguments
and whose return type is V<T> . |
public static <T,V extends SerializerMethodLoader.Serializer<T>> V getSerializer(Class<T> encapsulatingClass, Class<V> desiredReturnType, String methodName, boolean allowSuperClass) throws NoSuchMethodException
methodName
on class
encapsulatingClass
, which is supposed to have no arguments
and whose return type is V<T>
. One example is:
DataCellSerializer<FooCell> getCellSerializer() { ... }defined on class
FooCell
.T
- Class type, which defines the method (also the parameterized
return type.V
- The inherited class of class Serializer.encapsulatingClass
- The class defining this method.desiredReturnType
- The expected return type, implementing
interface SerializerMethodLoader.Serializer
allowSuperClass
- Whether to allow the definition of the method
in a super class of encapsulatingClass
.methodName
- The name of the method.NoSuchMethodException
- If this method can't be found or invoked
for any reason.
KNIME GmbH, Konstanz, Germany
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.