@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)
UserCodeWrapper
getUserCodeObject
in interface UserCodeWrapper<T>
public T getUserCodeObject()
UserCodeWrapper
getUserCodeObject
in interface UserCodeWrapper<T>
public <A extends Annotation> A getUserCodeAnnotation(Class<A> annotationClass)
UserCodeWrapper
getUserCodeAnnotation
in interface UserCodeWrapper<T>
annotationClass
- the Class object corresponding to the annotation typepublic Class<? extends T> getUserCodeClass()
UserCodeWrapper
Object.getClass()
is called on
the user code object.getUserCodeClass
in interface UserCodeWrapper<T>
public boolean hasObject()
UserCodeWrapper
hasObject
in interface UserCodeWrapper<T>
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.