1 22 package org.jboss.system.pm; 23 24 import javax.management.AttributeList ; 25 import org.jboss.mx.persistence.AttributePersistenceManager; 26 import org.w3c.dom.Element ; 27 33 public class NullAttributePersistenceManager 34 implements AttributePersistenceManager 35 { 36 private boolean isCreated = false; 37 38 public void create(String version, Element config) 39 throws Exception 40 { 41 isCreated = true; 42 } 43 44 public boolean getState() 45 { 46 return isCreated; 47 } 48 49 public void destroy() 50 { 51 isCreated = false; 52 } 53 54 56 public boolean exists(String id) 57 throws Exception 58 { 59 return false; 60 } 61 62 public AttributeList load(String id) 63 throws Exception 64 { 65 return null; 66 } 67 68 public void store(String id, AttributeList attrs) 69 throws Exception 70 { 71 } 73 74 public void remove(String id) 75 throws Exception 76 { 77 } 79 80 public void removeAll() 81 throws Exception 82 { 83 } 85 86 public String [] listAll() 87 throws Exception 88 { 89 return new String [0]; 90 } 91 } 92 | Popular Tags |