1 /* 2 * Copyright (C) MX4J. 3 * All rights reserved. 4 * 5 * This software is distributed under the terms of the MX4J License version 1.0. 6 * See the terms of the MX4J License in the documentation provided with this software. 7 */ 8 9 package mx4j.persist; 10 11 import javax.management.MBeanException; 12 import javax.management.RuntimeOperationsException; 13 import javax.management.InstanceNotFoundException; 14 15 /** 16 * Management interface for components able to persist information to a storage media. 17 * 18 * @author <a HREF="mailto:biorn_steedom@users.sourceforge.net">Simone Bordet</a> 19 * @version $Revision: 1.4 $ 20 */ 21 public interface PersisterMBean 22 { 23 /** 24 * Loads the information persisted on the storage media. 25 * @see #store 26 */ 27 public Object load() throws MBeanException, RuntimeOperationsException, InstanceNotFoundException; 28 29 /** 30 * Store the given information to the storage media. 31 * @see #load 32 */ 33 public void store(Object data) throws MBeanException, RuntimeOperationsException, InstanceNotFoundException; 34 } 35