com.fernsroth.easyio
Class DefaultFieldHandlerRegistry

java.lang.Object
  extended by com.fernsroth.easyio.DefaultFieldHandlerRegistry
All Implemented Interfaces:
FieldHandlerRegistry

public class DefaultFieldHandlerRegistry
extends java.lang.Object
implements FieldHandlerRegistry

Author:
Joseph M. Ferner (Near Infinity Corporation)

Constructor Summary
DefaultFieldHandlerRegistry()
           
 
Method Summary
static FieldHandlerRegistry getInstance()
          gets an instance of the this class.
 FieldHandler lookup(java.lang.Object obj, java.lang.reflect.Field field)
          
 void register(java.lang.Class<? extends java.lang.annotation.Annotation> an, FieldHandler handler)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultFieldHandlerRegistry

public DefaultFieldHandlerRegistry()
Method Detail

getInstance

public static FieldHandlerRegistry getInstance()
gets an instance of the this class.

Returns:
the instance.

register

public void register(java.lang.Class<? extends java.lang.annotation.Annotation> an,
                     FieldHandler handler)
Parameters:
an - the annotation to register.
handler - the handler.

lookup

public FieldHandler lookup(java.lang.Object obj,
                           java.lang.reflect.Field field)

Specified by:
lookup in interface FieldHandlerRegistry
Parameters:
obj - the object the field belongs to.
field - the field we are looking up the FieldHandler for.
Returns:
the field handler if any. null, if none defined.


Copyright © 2006 null. All Rights Reserved.