org.oddjob.describe
Class AccessorDescriber

java.lang.Object
  extended by org.oddjob.describe.AccessorDescriber
All Implemented Interfaces:
Describer

public class AccessorDescriber
extends Object
implements Describer

Describe the properties of an object using a PropertyAccessor.

If a property is annotated with NoDescribe then it will not be described.

Author:
rob

Constructor Summary
AccessorDescriber(ArooaSession session)
          Constructor.
 
Method Summary
 Map<String,String> describe(Object bean)
          Describe a bean.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccessorDescriber

public AccessorDescriber(ArooaSession session)
Constructor.

Parameters:
session - The session that proves annotations from the descriptor and an accessor from the tools.
Method Detail

describe

public Map<String,String> describe(Object bean)
Description copied from interface: Describer
Describe a bean.

Specified by:
describe in interface Describer
Parameters:
bean - The bean.
Returns:
Return a map which is a description of the properties.