@Internal public interface UserCodeWrapper<T> extends Serializable
Modifier and Type | Method and Description |
---|---|
<A extends Annotation> |
getUserCodeAnnotation(Class<A> annotationClass)
Gets an annotation that pertains to the user code class.
|
Class<? extends T> |
getUserCodeClass()
Gets the class of the user code.
|
T |
getUserCodeObject()
Gets the user code object.
|
T |
getUserCodeObject(Class<? super T> superClass,
ClassLoader cl)
Gets the user code object, which may be either a function or an input or output format.
|
boolean |
hasObject()
Checks whether the wrapper already has an object, or whether it needs to instantiate it.
|
T getUserCodeObject(Class<? super T> superClass, ClassLoader cl)
T getUserCodeObject()
<A extends Annotation> A getUserCodeAnnotation(Class<A> annotationClass)
annotationClass
- the Class object corresponding to the annotation typeClass<? extends T> getUserCodeClass()
Object.getClass()
is called on the user code object.boolean hasObject()
Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.