KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > services > database > XResources


1 /***************************************************************************
2  * Copyright 2001-2003 The eXo Platform SARL All rights reserved. *
3  * Please look at license.txt in info directory for more license detail. *
4  **************************************************************************/

5 package org.exoplatform.services.database;
6
7 import java.util.HashMap JavaDoc;
8 /**
9  * @author Tuan Nguyen (tuan08@users.sourceforge.net)
10  * @since Oct 22, 2004
11  * @version $Id: XResources.java,v 1.1 2004/10/22 23:49:17 tuan08 Exp $
12  */

13 public class XResources extends HashMap JavaDoc {
14
15   public Object JavaDoc getResource(Class JavaDoc cl) { return get(cl) ; }
16   public void addResource(Class JavaDoc cl , Object JavaDoc resource) {
17     put(cl, resource) ;
18   }
19   
20   public Object JavaDoc removeResource(Class JavaDoc cl) { return remove(cl) ; }
21 }
Popular Tags