org.hudsonci.utils.marshal.xref
Class FileXReferenceStore
java.lang.Object
org.hudsonci.utils.marshal.xref.FileXReferenceStore
- All Implemented Interfaces:
- XReferenceStore
public class FileXReferenceStore
- extends Object
- implements XReferenceStore
Simple file-based XReference storage strategy.
- Since:
- 2.1.0
- Author:
- Jason Dillon
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static final org.slf4j.Logger log
marshaller
protected final Marshaller marshaller
root
protected final File root
FileXReferenceStore
public FileXReferenceStore(Marshaller marshaller,
File root)
FileXReferenceStore
public FileXReferenceStore(Marshaller marshaller)
getRoot
public File getRoot()
getMarshaller
public Marshaller getMarshaller()
mkdirs
protected void mkdirs(File file)
sanitize
protected String sanitize(String path)
getFile
protected File getFile(XReference ref)
getMarshaller
protected Marshaller getMarshaller(XReference ref)
store
public void store(XReference ref)
throws IOException
- Specified by:
store in interface XReferenceStore
- Throws:
IOException
load
public Object load(XReference ref)
throws IOException
- Specified by:
load in interface XReferenceStore
- Throws:
IOException
Copyright © 2004-2011 Hudson. All Rights Reserved.