improve configuration objects

This commit is contained in:
Sebastian Sdorra
2013-03-25 08:03:32 +01:00
parent 57f5e31a54
commit c941ffb749
5 changed files with 102 additions and 25 deletions

View File

@@ -33,6 +33,8 @@ package sonia.scm.cache;
//~--- JDK imports ------------------------------------------------------------
import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
@@ -44,9 +46,14 @@ import javax.xml.bind.annotation.XmlRootElement;
*/
@XmlRootElement(name = "cache")
@XmlAccessorType(XmlAccessType.FIELD)
public class CacheConfiguration
public class CacheConfiguration implements Serializable
{
/** Field description */
private static final long serialVersionUID = -8734373158089010603L;
//~--- get methods ----------------------------------------------------------
/**
* Method description
*
@@ -124,17 +131,6 @@ public class CacheConfiguration
return maximumWeight;
}
/**
* Method description
*
*
* @return
*/
public String getName()
{
return name;
}
/**
* Method description
*
@@ -209,10 +205,6 @@ public class CacheConfiguration
@XmlAttribute
private Long maximumWeight;
/** Field description */
@XmlAttribute
private String name;
/** Field description */
@XmlAttribute
private Boolean recordStats;