/*
 * $Log: IRecordHandlerManager.java,v $
 * Revision 1.4  2006-05-19 09:28:38  europe\m00i745
 * Restore java files from batch package after unwanted deletion.
 *
 * Revision 1.2  2005/10/31 14:38:03  John Dekker <john.dekker@ibissource.org>
 * Add . in javadoc
 *
 * Revision 1.1  2005/10/11 13:00:22  John Dekker <john.dekker@ibissource.org>
 * New ibis file related elements, such as DirectoryListener, MoveFilePie and 
 * BatchFileTransformerPipe
 *
 */
package nl.nn.adapterframework.batch;

import java.util.Collection;

import nl.nn.adapterframework.core.INamedObject;
import nl.nn.adapterframework.core.PipeLineSession;

/**
 * Interface for handling a transformed record.
 * 
 * @author John Dekker
 */
public interface IRecordHandlerManager extends INamedObject {
	/**
	 * @return List of RecordHandlingFlow elements that this manager manages
	 */
	Collection getRecordHandlers();

	/**
	 * @param flow New flow to be added to the managed flow elements
	 */
	void addHandler(RecordHandlingFlow flow);
	
	/**
	 * @param record 
	 * @return the RecordHandlingFlow element to be used to handle the record
	 * @throws Exception
	 */
	RecordHandlingFlow getRecordHandler(PipeLineSession session, String record) throws Exception;
	
	/**
	 * @param filename
	 * @return the IRecordHandlingManager to be used initially based on the name of the input file 
	 */
	IRecordHandlerManager getRecordFactoryUsingFilename(PipeLineSession session, String filename);
	
	/**
	 * @param initialFactory inidicates if this manager is the initial manager
	 */
	void setInitial(boolean initialFactory);
	boolean isInitial();
}

@@ -36,16 +36,90 @@
 ava,v $%0A
+ * Revision 1.5  2007-07-24 07:59:15  europe%5CL190409%0A * update javadoc%0A *%0A
  * Revis
@@ -135,12 +135,12 @@
 2006
--05-
+/05/
 19 0
@@ -152,22 +152,58 @@
 38  
-europe%5Cm00i745
+Peter Eijgermans %3Cpeter.eijgermans@ibissource.org%3E
 %0A * 
@@ -790,16 +790,302 @@
 rd.%0A * %0A
+ * A RecordHandlerManager decides, based on some implementation dependent algorithm, which record handler%0A * is to be used to process a record. %0A * A record manager keeps a table of flow-elements, that each define a recordhandler, resulthandler and, %0A * optionally, a next-manager.%0A * %0A
  * @auth

update javadoc