1 16 package org.apache.cocoon.portal.profile.impl; 17 18 import java.util.HashMap ; 19 import java.util.Map ; 20 21 import org.apache.cocoon.portal.coplet.CopletInstanceData; 22 23 30 public class CopletInstanceDataManager { 31 32 35 private final Map copletInstanceData; 36 37 public CopletInstanceDataManager() { 38 this.copletInstanceData = new HashMap (); 39 } 40 41 public CopletInstanceDataManager(Map instances) { 42 this.copletInstanceData = instances; 43 } 44 45 48 public Map getCopletInstanceData() { 49 return this.copletInstanceData; 50 } 51 52 55 public CopletInstanceData getCopletInstanceData(String copletId) { 56 return (CopletInstanceData)this.copletInstanceData.get(copletId); 57 } 58 59 62 public void putCopletInstanceData(CopletInstanceData data) { 63 this.copletInstanceData.put(data.getId(), data); 64 } 65 } 66 | Popular Tags |