01: //$Id: PropertyAccessor.java 3890 2004-06-03 16:31:32Z steveebersole $
02: package org.hibernate.property;
03:
04: import org.hibernate.PropertyNotFoundException;
05:
06: /**
07: * Abstracts the notion of a "property". Defines a strategy for accessing the
08: * value of an attribute.
09: * @author Gavin King
10: */
11: public interface PropertyAccessor {
12: /**
13: * Create a "getter" for the named attribute
14: */
15: public Getter getGetter(Class theClass, String propertyName)
16: throws PropertyNotFoundException;
17:
18: /**
19: * Create a "setter" for the named attribute
20: */
21: public Setter getSetter(Class theClass, String propertyName)
22: throws PropertyNotFoundException;
23: }
|