added XmlIntervalAdapter

This commit is contained in:
Sebastian Sdorra
2011-03-12 12:03:21 +01:00
parent 0fc52ec104
commit 5ef764d1db
4 changed files with 163 additions and 1 deletions

View File

@@ -33,6 +33,10 @@
package sonia.scm.plugin;
//~--- non-JDK imports --------------------------------------------------------
import sonia.scm.xml.XmlIntervalAdapter;
//~--- JDK imports ------------------------------------------------------------
import java.io.File;
@@ -44,6 +48,7 @@ import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
/**
*
@@ -161,5 +166,6 @@ public class BackendConfiguration
/** Field description */
@XmlElement(name = "scann-interval")
private long scannInterval;
@XmlJavaTypeAdapter(XmlIntervalAdapter.class)
private Long scannInterval;
}