1 /********************************************************************** 2 * MultiObjectHandler.java 3 * created on 07.08.2004 by netseeker 4 * $Source: /cvsroot/ejoe/EJOE/src/de/netseeker/ejoe/handler/MultiObjectHandler.java,v $ 5 * $Date: 2006/02/04 14:16:03 $ 6 * $Revision: 1.3 $ 7 *********************************************************************/ 8 9 package de.netseeker.ejoe.handler; 10 11 import java.util.Map; 12 13 /*** 14 * A simple base class for server handlers which have to deal with multiple 15 * input objects and return values 16 * 17 * @author netseeker aka Michael Manske 18 */ 19 public abstract class MultiObjectHandler implements ServerHandler 20 { 21 /*** 22 * Simply casts the given input object into a map 23 * 24 * @see de.netseeker.ejoe.handler.ServerHandler#handle(java.lang.Object) 25 */ 26 public Object handle(Object obj) 27 { 28 return execute((Map) obj); 29 } 30 31 public abstract Map execute(Map objects); 32 }