01: /*
02: * Copyright (c) 2005 Your Corporation. All Rights Reserved.
03: */
04:
05: /*
06: * Created by IntelliJ IDEA.
07: * User: Jacques
08: * Date: Dec 23, 2005
09: * Time: 4:10:03 PM
10: */
11: package com.technoetic.xplanner.util;
12:
13: public class PropertyUtils extends
14: org.apache.commons.beanutils.PropertyUtils {
15: public static void setProperty(Object object, String property,
16: Object value) {
17: try {
18: org.apache.commons.beanutils.PropertyUtils.setProperty(
19: object, property, value);
20: } catch (Exception e) {
21: throw new RuntimeException(e);
22: }
23: }
24:
25: public static Object getProperty(Object object, String property) {
26: try {
27: return org.apache.commons.beanutils.PropertyUtils
28: .getProperty(object, property);
29: } catch (Exception e) {
30: throw new RuntimeException(e);
31: }
32: }
33:
34: }
|