View Javadoc
1   // =================== DO NOT EDIT THIS FILE ====================
2   // Generated by Modello 2.1.2,
3   // any modifications will be overwritten.
4   // ==============================================================
5   
6   package org.apache.maven.buildcache.xml.config;
7   
8   /**
9    * Class Local.
10   * 
11   * @version $Revision$ $Date$
12   */
13  @SuppressWarnings( "all" )
14  public class Local
15      implements java.io.Serializable
16  {
17  
18        //--------------------------/
19       //- Class/Member Variables -/
20      //--------------------------/
21  
22      /**
23       * The base directory where the local cache is located.
24       *                         Defaults to {@code
25       * $\{localRepository}/../cache}.
26       */
27      private String location;
28  
29      /**
30       * Maximum number of cached build per artifact in local cache.
31       * First created cache (the
32       *                         oldest) is evicted if breached.
33       */
34      private int maxBuildsCached = 3;
35  
36  
37        //-----------/
38       //- Methods -/
39      //-----------/
40  
41      /**
42       * Get the base directory where the local cache is located.
43       *                         Defaults to {@code
44       * $\{localRepository}/../cache}.
45       * 
46       * @return String
47       */
48      public String getLocation()
49      {
50          return this.location;
51      } //-- String getLocation()
52  
53      /**
54       * Get maximum number of cached build per artifact in local
55       * cache. First created cache (the
56       *                         oldest) is evicted if breached.
57       * 
58       * @return int
59       */
60      public int getMaxBuildsCached()
61      {
62          return this.maxBuildsCached;
63      } //-- int getMaxBuildsCached()
64  
65      /**
66       * Set the base directory where the local cache is located.
67       *                         Defaults to {@code
68       * $\{localRepository}/../cache}.
69       * 
70       * @param location a location object.
71       */
72      public void setLocation( String location )
73      {
74          this.location = location;
75      } //-- void setLocation( String )
76  
77      /**
78       * Set maximum number of cached build per artifact in local
79       * cache. First created cache (the
80       *                         oldest) is evicted if breached.
81       * 
82       * @param maxBuildsCached a maxBuildsCached object.
83       */
84      public void setMaxBuildsCached( int maxBuildsCached )
85      {
86          this.maxBuildsCached = maxBuildsCached;
87      } //-- void setMaxBuildsCached( int )
88  
89  }