1 /** 2 * Copyright (C) 2003-2005 Funambol 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License as published by 6 * the Free Software Foundation; either version 2 of the License, or 7 * (at your option) any later version. 8 * 9 * This program is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details. 13 * 14 * You should have received a copy of the GNU General Public License 15 * along with this program; if not, write to the Free Software 16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17 */ 18 19 package sync4j.framework.server.dm; 20 21 import sync4j.framework.engine.dm.ManagementProcessor; 22 import sync4j.framework.engine.dm.DeviceDMState; 23 import sync4j.framework.core.dm.ddf.DevInfo; 24 25 26 /** 27 * This interface defines the structure of a Processor Selector. A Processor 28 * selector is the component that implements the logic to select the specific 29 * processor manager that should handle the management session. 30 * 31 * @author Stefano Fornari @ Funambol 32 * 33 * @version $Id: ProcessorSelector.java,v 1.1 2005/05/16 17:32:56 nichele Exp $ 34 */ 35 public interface ProcessorSelector { 36 37 /** 38 * Returns the processor manager that will handle the management session. <br> 39 * The selection can be done accordingly to any logic and relevan data. 40 * However, at least the device info obtained by the client are given. 41 * 42 * @param dms the device management state 43 * @param devInfo the ./DevInfo standardized object provided by the client 44 * 45 * @return the processor manager that will handle the management session 46 */ 47 public ManagementProcessor getProcessor(DeviceDMState dms, DevInfo devInfo); 48 }