com.syrtsov.handler
Class HandlerFactory<T>

java.lang.Object
  extended by com.syrtsov.handler.HandlerFactory<T>
All Implemented Interfaces:
CachingFactory<T>, Factory<T>

public class HandlerFactory<T>
extends java.lang.Object
implements CachingFactory<T>

HandlerFactory is utility class that creates chain of InvocationHandler according to annotations attached to given interface.

User: Pavel Syrtsov Date: Apr 1, 2007 Time: 10:38:58 PM


Constructor Summary
HandlerFactory()
           
 
Method Summary
 T create(ALinker aLinker, Context<T> ctx)
           
 T getCachedObject(Context<T> ctx)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HandlerFactory

public HandlerFactory()
Method Detail

create

public T create(ALinker aLinker,
                Context<T> ctx)
         throws FactoryException
Specified by:
create in interface Factory<T>
Throws:
FactoryException

getCachedObject

public T getCachedObject(Context<T> ctx)
Specified by:
getCachedObject in interface CachingFactory<T>