org.compass.core.accessor
Interface PropertyAccessor

All Known Implementing Classes:
BasicPropertyAccessor, DirectPropertyAccessor

public interface PropertyAccessor

Abstracts the notion of a "property". Defines a strategy for accessing the value of a class property.

Custom implementation can implement CompassConfiguration for external configuration settings.

Author:
kimchy

Method Summary
 Getter getGetter(Class theClass, String propertyName)
          Create a "getter" for the named attribute
 Setter getSetter(Class theClass, String propertyName)
          Create a "setter" for the named attribute
 

Method Detail

getGetter

Getter getGetter(Class theClass,
                 String propertyName)
                 throws PropertyNotFoundException
Create a "getter" for the named attribute

Throws:
PropertyNotFoundException

getSetter

Setter getSetter(Class theClass,
                 String propertyName)
                 throws PropertyNotFoundException
Create a "setter" for the named attribute

Throws:
PropertyNotFoundException


Copyright (c) 2004-2008 The Compass Project.