@Internal public class UserCodeObjectWrapper<T> extends Object implements UserCodeWrapper<T>
| Constructor and Description |
|---|
UserCodeObjectWrapper(T userCodeObject) |
| 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.
|
public UserCodeObjectWrapper(T userCodeObject)
public T getUserCodeObject(Class<? super T> superClass, ClassLoader cl)
UserCodeWrappergetUserCodeObject in interface UserCodeWrapper<T>public T getUserCodeObject()
UserCodeWrappergetUserCodeObject in interface UserCodeWrapper<T>public <A extends Annotation> A getUserCodeAnnotation(Class<A> annotationClass)
UserCodeWrappergetUserCodeAnnotation in interface UserCodeWrapper<T>annotationClass - the Class object corresponding to the annotation typepublic Class<? extends T> getUserCodeClass()
UserCodeWrapperObject.getClass() is called on the user code object.getUserCodeClass in interface UserCodeWrapper<T>public boolean hasObject()
UserCodeWrapperhasObject in interface UserCodeWrapper<T>Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.