Package de.mhus.lib.core.pojo
Class FunctionAction
- java.lang.Object
-
- de.mhus.lib.core.pojo.FunctionAction
-
- All Implemented Interfaces:
PojoAction
public class FunctionAction extends Object implements PojoAction
-
-
Constructor Summary
Constructors Constructor Description FunctionAction(Class<?> clazz, Method action, String name, FunctionAttribute<Object> parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectdoExecute(Object pojo, Object... args)AnnotationgetAnnotation(Class<? extends Annotation> annotationClass)Class<?>getManagedClass()StringgetName()Class<?>[]getParameterType()Class<?>getReturnType()
-
-
-
Constructor Detail
-
FunctionAction
public FunctionAction(Class<?> clazz, Method action, String name, FunctionAttribute<Object> parent)
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getNamein interfacePojoAction
-
doExecute
public Object doExecute(Object pojo, Object... args) throws IOException
- Specified by:
doExecutein interfacePojoAction- Throws:
IOException
-
getAnnotation
public Annotation getAnnotation(Class<? extends Annotation> annotationClass)
- Specified by:
getAnnotationin interfacePojoAction
-
getManagedClass
public Class<?> getManagedClass()
- Specified by:
getManagedClassin interfacePojoAction
-
getReturnType
public Class<?> getReturnType()
- Specified by:
getReturnTypein interfacePojoAction
-
getParameterType
public Class<?>[] getParameterType()
- Specified by:
getParameterTypein interfacePojoAction
-
-