org.oddjob.describe
Class AnnotationDescriber
java.lang.Object
org.oddjob.describe.AnnotationDescriber
- All Implemented Interfaces:
- Describer
public class AnnotationDescriber
- extends Object
- implements Describer
A Describer
that looks for a method annotated with
DescribeWith
that will provide a description.
- Author:
- rob
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AnnotationDescriber
public AnnotationDescriber(ArooaSession session)
- Constructor.
- Parameters:
session
- The session that provides the descriptor used
to check for the annotation.
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.