org.hudsonci.utils.marshal.xref
Class FileXReferenceStore

java.lang.Object
  extended by 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

Field Summary
protected static org.slf4j.Logger log
           
protected  Marshaller marshaller
           
protected  File root
           
 
Constructor Summary
FileXReferenceStore(Marshaller marshaller)
           
FileXReferenceStore(Marshaller marshaller, File root)
           
 
Method Summary
protected  File getFile(XReference ref)
           
 Marshaller getMarshaller()
           
protected  Marshaller getMarshaller(XReference ref)
           
 File getRoot()
           
 Object load(XReference ref)
           
protected  void mkdirs(File file)
           
protected  String sanitize(String path)
           
 void store(XReference ref)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final org.slf4j.Logger log

marshaller

protected final Marshaller marshaller

root

protected final File root
Constructor Detail

FileXReferenceStore

public FileXReferenceStore(Marshaller marshaller,
                           File root)

FileXReferenceStore

public FileXReferenceStore(Marshaller marshaller)
Method Detail

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.