package eu.dnetlib.akka;

import akka.actor.ActorRef;
import akka.dispatch.MessageDispatcher;

/**
 * Some dispatcher factories needs to pass the actual actor ref known only after the actor is created.
 * 
 * @author marko
 * 
 */
public interface DispatcherBuilder {
	/**
	 * Create the actual instance of the dispatcher. Implementors might need the actor ref, or not.
	 * 
	 * @param ref
	 * @return
	 */
	MessageDispatcher create(ActorRef ref);
}
