1 8 9 package com.sleepycat.persist.evolve; 10 11 import java.util.Collections ; 12 import java.util.HashSet ; 13 import java.util.Set ; 14 15 import com.sleepycat.persist.EntityStore; 16 17 24 public class EvolveConfig implements Cloneable { 25 26 private Set <String > classesToEvolve; 27 private EvolveListener listener; 28 29 32 public EvolveConfig() { 33 classesToEvolve = new HashSet <String >(); 34 } 35 36 39 public EvolveConfig cloneConfig() { 40 try { 41 return (EvolveConfig) clone(); 42 } catch (CloneNotSupportedException cannotHappen) { 43 return null; 44 } 45 } 46 47 51 public void addClassToEvolve(String entityClass) { 52 classesToEvolve.add(entityClass); 53 } 54 55 58 public Set <String > getClassesToEvolve() { 59 return Collections.unmodifiableSet(classesToEvolve); 60 } 61 62 65 public void setEvolveListener(EvolveListener listener) { 66 this.listener = listener; 67 } 68 69 73 public EvolveListener getEvolveListener() { 74 return listener; 75 } 76 } 77 | Popular Tags |