1 //$Id: PropertyAccessor.java,v 1.1 2004/06/03 16:30:12 steveebersole Exp $ 2 package org.hibernate.property; 3 4 import org.hibernate.PropertyNotFoundException; 5 6 /** 7 * Abstracts the notion of a "property". Defines a strategy for accessing the 8 * value of an attribute. 9 * @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) throws PropertyNotFoundException; 16 /** 17 * Create a "setter" for the named attribute 18 */ 19 public Setter getSetter(Class theClass, String propertyName) throws PropertyNotFoundException; 20 } 21