org.omnaest.utils.dispatcher
Class ProxyDispatcherFactory<T>

java.lang.Object
  extended by org.omnaest.utils.dispatcher.ProxyDispatcherFactory<T>
Type Parameters:
T -

public class ProxyDispatcherFactory<T>
extends Object

A ProxyDispatcherFactory generates a proxy which will dispatch to a given List of instances implementing the same shared type

Author:
Omnaest

Constructor Summary
ProxyDispatcherFactory(Class<? extends T> type)
           
 
Method Summary
 T newDispatcher(List<? extends T> instanceList)
           
 ProxyDispatcherFactory<T> setExceptionHandler(ExceptionHandler exceptionHandler)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxyDispatcherFactory

public ProxyDispatcherFactory(Class<? extends T> type)
Method Detail

newDispatcher

public T newDispatcher(List<? extends T> instanceList)

setExceptionHandler

public ProxyDispatcherFactory<T> setExceptionHandler(ExceptionHandler exceptionHandler)
Parameters:
exceptionHandler - ExceptionHandler
Returns:
this


Copyright © 2013. All Rights Reserved.