Back to index

wims  3.65+svn20090927
ObjectsRepository.java
Go to the documentation of this file.
00001 /*
00002 $Id: ObjectsRepository.java,v 1.2 2003/02/18 11:48:48 sander Exp $
00003 */
00004 
00005 
00006 package fr.ove.utils;
00007 
00008 import java.util.*;
00009 
00020 public class ObjectsRepository {
00024     private Hashtable repository;
00025     
00029     public ObjectsRepository() {
00030         repository = new Hashtable();
00031     }
00032     
00038     public Object putObject(Object object, String name) {
00039         return repository.put(name, object);
00040     }
00041     
00046     public Object getObject(String name) {
00047         return repository.get(name);
00048     }
00049     
00054     public Object removeObject(String name) {
00055         return repository.remove(name);
00056     }
00057     
00061     public Hashtable getRepository() {
00062         return repository;
00063     }
00064 }