org.compass.core.accessor
Class BasicPropertyAccessor

java.lang.Object
  extended by org.compass.core.accessor.BasicPropertyAccessor
All Implemented Interfaces:
PropertyAccessor, CompassConfigurable

public class BasicPropertyAccessor
extends Object
implements PropertyAccessor, CompassConfigurable

Accesses property values via a get/set pair, which may be nonpublic. The default (and recommended strategy).

Initial version taken from hibernate.

Author:
kimchy

Nested Class Summary
static class BasicPropertyAccessor.BasicGetter
           
static class BasicPropertyAccessor.BasicSetter
           
 
Constructor Summary
BasicPropertyAccessor()
           
 
Method Summary
 void configure(CompassSettings settings)
          Configure using the given settings.
 Getter createGetter(Class theClass, String propertyName)
           
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicPropertyAccessor

public BasicPropertyAccessor()
Method Detail

configure

public void configure(CompassSettings settings)
               throws CompassException
Description copied from interface: CompassConfigurable
Configure using the given settings.

Specified by:
configure in interface CompassConfigurable
Parameters:
settings - The settings for the configured object
Throws:
CompassException

getSetter

public Setter getSetter(Class theClass,
                        String propertyName)
                 throws PropertyNotFoundException
Description copied from interface: PropertyAccessor
Create a "setter" for the named attribute

Specified by:
getSetter in interface PropertyAccessor
Throws:
PropertyNotFoundException

getGetter

public Getter getGetter(Class theClass,
                        String propertyName)
                 throws PropertyNotFoundException
Description copied from interface: PropertyAccessor
Create a "getter" for the named attribute

Specified by:
getGetter in interface PropertyAccessor
Throws:
PropertyNotFoundException

createGetter

public Getter createGetter(Class theClass,
                           String propertyName)
                    throws PropertyNotFoundException
Throws:
PropertyNotFoundException


Copyright (c) 2004-2009 The Compass Project.