org.ztemplates.actions.util.impl
Class ZReflectionUtil

java.lang.Object
  extended by org.ztemplates.actions.util.impl.ZReflectionUtil

public class ZReflectionUtil
extends Object


Constructor Summary
ZReflectionUtil()
           
 
Method Summary
static void callAfter(Object obj)
           
static void callAfterForm(Object obj, String name)
           
static boolean callAfterOperation(Object obj, String operationName)
           
static void callAfterReference(Object obj, String name)
           
static void callAfterVariable(Object obj, String name)
           
static void callBefore(Object obj)
           
static void callBeforeForm(Object obj, String name)
           
static void callBeforeReference(Object obj, String name)
           
static void callBeforeVariable(Object obj, String name)
           
static Object callFormGetter(Object obj, String name)
           
static void callInitReference(Object obj, String name, Object value)
           
static String[] callParameterGetter(Object obj, String name)
           
static ZProperty callParameterSetter(Object obj, String name, String[] value)
           
static Object callReferenceGetter(Object obj, String name)
           
static void callReferenceSetter(Object obj, String name, Object value)
           
static String callVariableGetter(Object obj, String name)
           
static void callVariableSetter(Object obj, String name, String value)
           
static String computePrefixName(String prefix, String name)
           
static Method getAfter(Class clazz, String name)
           
static
<T extends Annotation>
T
getAnnotation(Class clazz, Class<T> ann)
           
static Method getBefore(Class clazz, String name)
           
static Method getGetter(Class clazz, String name)
           
static Method getInit(Class clazz, String name)
           
static Class getReferenceType(Class clazz, String name)
           
static Method getSetter(Class clazz, String name)
           
static Object invoke(Method method, Object obj, Object... value)
           
static
<T> T
newInstance(Class<T> clazz)
          not used anymore
static String removePrefixName(String prefix, String name)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZReflectionUtil

public ZReflectionUtil()
Method Detail

callAfter

public static void callAfter(Object obj)
                      throws Exception
Throws:
Exception

callAfterOperation

public static boolean callAfterOperation(Object obj,
                                         String operationName)
                                  throws Exception
Throws:
Exception

callAfterReference

public static void callAfterReference(Object obj,
                                      String name)
                               throws Exception
Throws:
Exception

callAfterVariable

public static void callAfterVariable(Object obj,
                                     String name)
                              throws Exception
Throws:
Exception

callBefore

public static void callBefore(Object obj)
                       throws Exception
Throws:
Exception

callBeforeReference

public static void callBeforeReference(Object obj,
                                       String name)
                                throws Exception
Throws:
Exception

callBeforeVariable

public static void callBeforeVariable(Object obj,
                                      String name)
                               throws Exception
Throws:
Exception

callInitReference

public static void callInitReference(Object obj,
                                     String name,
                                     Object value)
                              throws Exception
Throws:
Exception

callParameterSetter

public static ZProperty callParameterSetter(Object obj,
                                            String name,
                                            String[] value)
                                     throws Exception
Throws:
Exception

callVariableSetter

public static void callVariableSetter(Object obj,
                                      String name,
                                      String value)
                               throws Exception
Throws:
Exception

callReferenceSetter

public static void callReferenceSetter(Object obj,
                                       String name,
                                       Object value)
                                throws Exception
Throws:
Exception

callParameterGetter

public static String[] callParameterGetter(Object obj,
                                           String name)
                                    throws Exception
Throws:
Exception

callReferenceGetter

public static Object callReferenceGetter(Object obj,
                                         String name)
                                  throws Exception
Throws:
Exception

getAnnotation

public static <T extends Annotation> T getAnnotation(Class clazz,
                                                     Class<T> ann)

callFormGetter

public static Object callFormGetter(Object obj,
                                    String name)
                             throws Exception
Throws:
Exception

callVariableGetter

public static String callVariableGetter(Object obj,
                                        String name)
                                 throws Exception
Throws:
Exception

getReferenceType

public static Class getReferenceType(Class clazz,
                                     String name)
                              throws Exception
Throws:
Exception

invoke

public static Object invoke(Method method,
                            Object obj,
                            Object... value)
                     throws Exception
Throws:
Exception

newInstance

public static <T> T newInstance(Class<T> clazz)
                     throws Exception
not used anymore

Parameters:
path -
Returns:
Throws:
Exception

computePrefixName

public static String computePrefixName(String prefix,
                                       String name)

getGetter

public static Method getGetter(Class clazz,
                               String name)
                        throws Exception
Throws:
Exception

getSetter

public static Method getSetter(Class clazz,
                               String name)
                        throws Exception
Throws:
Exception

getBefore

public static Method getBefore(Class clazz,
                               String name)
                        throws Exception
Throws:
Exception

getAfter

public static Method getAfter(Class clazz,
                              String name)
                       throws Exception
Throws:
Exception

getInit

public static Method getInit(Class clazz,
                             String name)

callBeforeForm

public static void callBeforeForm(Object obj,
                                  String name)
                           throws Exception
Throws:
Exception

callAfterForm

public static void callAfterForm(Object obj,
                                 String name)
                          throws Exception
Throws:
Exception

removePrefixName

public static String removePrefixName(String prefix,
                                      String name)


Copyright © 2011. All Rights Reserved.