1 18 package org.objectweb.speedo.workingset.lib; 19 20 import org.objectweb.fractal.api.control.BindingController; 21 import org.objectweb.perseus.persistence.api.PersistenceException; 22 import org.objectweb.perseus.persistence.api.WorkingSet; 23 import org.objectweb.perseus.persistence.api.WorkingSetManager; 24 import org.objectweb.util.monolog.api.Logger; 25 26 35 public class SpeedoWorkingSetManager 36 implements WorkingSetManager, BindingController { 37 38 private Logger logger; 39 40 43 public String [] listFc() { 44 return new String [] {}; 45 } 46 47 public Object lookupFc(String c) { 48 return null; 49 } 50 51 public void bindFc(String c, Object s) { 52 if ("logger".equals(c)) { 53 logger = (Logger) s; 54 } 55 } 56 57 public void unbindFc(String c) { 58 } 59 60 61 public WorkingSet createWS(Object userObject) 62 throws PersistenceException { 63 return userObject instanceof WorkingSet ? (WorkingSet) userObject : null; 64 } 65 66 public WorkingSet createWS(Object userObject, 67 Object workingSetType) 68 throws PersistenceException { 69 return userObject instanceof WorkingSet ? (WorkingSet) userObject : null; 70 } 71 72 public void closeWS(WorkingSet ws) { 73 } 74 } 75 | Popular Tags |