org.oddjob.describe
Class AnnotationDescriber

java.lang.Object
  extended by 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

Constructor Summary
AnnotationDescriber(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

AnnotationDescriber

public AnnotationDescriber(ArooaSession session)
Constructor.

Parameters:
session - The session that provides the descriptor used to check for the annotation.
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.