Subversion Repositories XServices

Rev

Rev 102 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 102 Rev 185
Line 17... Line 17...
17
package net.brutex.xservices.util.cache;
17
package net.brutex.xservices.util.cache;
Line 18... Line 18...
18
 
18
 
19
import java.io.File;
19
import java.io.File;
Line 20... Line -...
20
import java.util.List;
-
 
21
 
20
import java.util.List;
Line 22... Line 21...
22
import org.apache.commons.configuration.PropertiesConfiguration;
21
 
23
import org.apache.log4j.Logger;
22
import org.apache.logging.log4j.Logger;
24
 
23
 
25
/**
24
/**
26
 * @author Brian Rosenberger, bru(at)brutex.de
25
 * @author Brian Rosenberger, bru(at)brutex.de
27
 *
26
 *
28
 */
27
 */
29
public class FindingsConfigBean {
-
 
30
	
28
public class FindingsConfigBean {
31
	private final Logger logger;
29
 
32
	
30
	private Logger logger;
33
	private final int instanceid;
31
	private final int instanceid;
34
	
32
 
35
	private File cvsconfig;
33
	private File cvsconfig;
Line 36... Line 34...
36
	private int cacheinterval = 15;
34
	private int cacheinterval = 15;
37
	private List<Object> filepatterns;
35
	private List<Object> filepatterns;
38
	private List<Object> contentpatterns;
36
	private List<Object> contentpatterns;
39
 
37
 
40
	public FindingsConfigBean(int instanceid, Logger logger) {
38
	public FindingsConfigBean(int instanceid, Logger logger) {
41
		this.instanceid = instanceid;
39
		this.instanceid = instanceid;
Line 42... Line 40...
42
		this.logger = logger;
40
		this.logger = logger;
43
		logger.debug("Initialise FindingsConfigBean instance '"+instanceid+"'");
41
		logger.debug("Initialise FindingsConfigBean instance '" + instanceid + "'");
44
		
42
 
45
	}
43
	}
46
 
44
 
47
	/**
45
	/**
Line 48... Line 46...
48
	 * @return the cache interval
46
	 * @return the cache interval
-
 
47
	 */
49
	 */
48
	public int getCacheinterval() {
50
	public int getCacheinterval() {
49
		return cacheinterval;
51
		return cacheinterval;
50
	}
52
	}
51
 
53
 
52
	/**
54
	/**
53
	 * @param cacheinterval
55
	 * @param cacheinterval the cache interval to set
54
	 *            the cache interval to set
56
	 */
55
	 */
57
	public void setCacheinterval(int cacheinterval) {
56
	public void setCacheinterval(int cacheinterval) {
58
		this.cacheinterval = cacheinterval;
57
		this.cacheinterval = cacheinterval;
59
	}
58
	}
60
	
59
 
Line 61... Line 60...
61
	/**
60
	/**
-
 
61
	 * @return the cvsconfig
62
	 * @return the cvsconfig
62
	 */
63
	 */
63
	public File getCvsconfig() {
64
	public File getCvsconfig() {
64
		return cvsconfig;
65
		return cvsconfig;
65
	}
66
	}
66
 
Line 78... Line 78...
78
	public List<Object> getFilepatterns() {
78
	public List<Object> getFilepatterns() {
79
		return filepatterns;
79
		return filepatterns;
80
	}
80
	}
Line 81... Line 81...
81
 
81
 
-
 
82
	/**
82
	/**
83
	 * @param filepatterns
83
	 * @param filepatterns the filepatterns to set
84
	 *            the filepatterns to set
84
	 */
85
	 */
85
	public void setFilepatterns(List<Object> filepatterns) {
86
	public void setFilepatterns(List<Object> filepatterns) {
86
		this.filepatterns = filepatterns;
87
		this.filepatterns = filepatterns;
Line 92... Line 93...
92
	public List<Object> getContentpatterns() {
93
	public List<Object> getContentpatterns() {
93
		return contentpatterns;
94
		return contentpatterns;
94
	}
95
	}
Line 95... Line 96...
95
 
96
 
-
 
97
	/**
96
	/**
98
	 * @param contentpatterns
97
	 * @param contentpatterns the contentpatterns to set
99
	 *            the contentpatterns to set
98
	 */
100
	 */
99
	public void setContentpatterns(List<Object> contentpatterns) {
101
	public void setContentpatterns(List<Object> contentpatterns) {
100
		this.contentpatterns = contentpatterns;
102
		this.contentpatterns = contentpatterns;
Line 101... Line 103...
101
	}
103
	}
102
 
104
 
103
	/**
105
	/**
104
	 * @param instanceid
106
	 * @param instanceid
105
	 */
107
	 */