org.oddjob.describe
Class AccessorDescriber
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AccessorDescriber
public AccessorDescriber(ArooaSession session)
- Constructor.
- Parameters:
session
- The session that proves annotations from the
descriptor and an accessor from the tools.
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.