org.apache.servicemix.jbi.deployer.impl
Class SimpleStorage

java.lang.Object
  extended by org.apache.servicemix.jbi.deployer.impl.SimpleStorage
All Implemented Interfaces:
Storage

public class SimpleStorage
extends Object
implements Storage


Constructor Summary
SimpleStorage(File file)
           
 
Method Summary
 void clear()
           
 void clear(String prefix)
           
 String get(String key)
           
 String get(String key, String def)
           
 Storage getStorage(String name)
           
 void load()
           
 void put(String key, String value)
           
 void save()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleStorage

public SimpleStorage(File file)
Method Detail

load

public void load()
          throws IOException
Throws:
IOException

get

public String get(String key)
Specified by:
get in interface Storage

get

public String get(String key,
                  String def)
Specified by:
get in interface Storage

put

public void put(String key,
                String value)
Specified by:
put in interface Storage

clear

public void clear()
Specified by:
clear in interface Storage

clear

public void clear(String prefix)
Specified by:
clear in interface Storage

save

public void save()
          throws IOException
Specified by:
save in interface Storage
Throws:
IOException

getStorage

public Storage getStorage(String name)
Specified by:
getStorage in interface Storage


Copyright © 2005-2011 The Apache Software Foundation. All Rights Reserved.