01: /*
02: * PropertyHandler.java
03: *
04: * Copyright (c) 2007 Sun Microsystems, Inc. All Rights Reserved.
05: *
06: * See the file "LICENSE.txt" for information on usage and redistribution
07: * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
08: */
09: package org.pnuts.lang;
10:
11: import java.lang.reflect.*;
12:
13: public interface PropertyHandler {
14:
15: /**
16: * Called by ObjectDesc.handleProperties()
17: *
18: * @param propertyName a property name
19: * @param type the type of the property
20: * @param readMethod the read method for the property
21: * @param writeMethod the write method for the property
22: */
23: void handle(String propertyName, Class type, Method readMethod,
24: Method writeMethod);
25: }
|