00001 /* 00002 * JOnAS: Java(TM) Open Application Server 00003 * Copyright (C) 1999 Bull S.A. 00004 * Contact: jonas-team@objectweb.org 00005 * 00006 * ObjectWeb Connector: an implementation of JCA Sun specification along 00007 * with some extensions of this specification. 00008 * Copyright (C) 2001-2002 France Telecom R&D - INRIA 00009 * 00010 * This library is free software; you can redistribute it and/or 00011 * modify it under the terms of the GNU Lesser General Public 00012 * License as published by the Free Software Foundation; either 00013 * version 2 of the License, or (at your option) any later version. 00014 * 00015 * This library is distributed in the hope that it will be useful, 00016 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00018 * Lesser General Public License for more details. 00019 * 00020 * You should have received a copy of the GNU Lesser General Public 00021 * License along with this library; if not, write to the Free Software 00022 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00023 * 00024 * Based on PoolMatchFactory in ObjectWeb common 00025 * 00026 * -------------------------------------------------------------------------- 00027 * $Id: PoolMatchFactory.java,v 1.5 2004/10/29 23:33:37 ehardesty Exp $ 00028 * -------------------------------------------------------------------------- 00029 * 00030 */ 00031 00037 package org.objectweb.jonas.resource.pool.api; 00038 00043 import java.util.Set; 00044 00051 public interface PoolMatchFactory { 00059 Object createResource(Object hints) throws Exception; 00060 00071 boolean matchResource(Object pr, Object hints); 00072 00084 Object matchResource(Set res, Object hints) throws Exception; 00090 void releaseResource(Object pr) throws Exception; 00097 void validateResource(Set res) throws Exception; 00098 } 00099 00100