propertyaccessor.java

来自「用Java实现的23个常用设计模式源代码」· Java 代码 · 共 21 行

JAVA
21
字号
//$Id: PropertyAccessor.java,v 1.1.2.2 2003/09/13 16:42:25 oneovthafew Exp $
package net.sf.hibernate.property;

import net.sf.hibernate.PropertyNotFoundException;

/**
 * Abstracts the notion of a "property". Defines a strategy for accessing the
 * value of an attribute.
 * @author Gavin King
 */
public interface PropertyAccessor {
	/**
	 * Create a "getter" for the named attribute
	 */
	public Getter getGetter(Class theClass, String propertyName) throws PropertyNotFoundException;
	/**
	 * Create a "setter" for the named attribute
	 */
	public Setter getSetter(Class theClass, String propertyName) throws PropertyNotFoundException;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?