Mercurial > hg > blitz_condensed
comparison src/org/dancres/blitz/config/EntryConstraint.java @ 0:3dc0c5604566
Initial checkin of blitz 2.0 fcs - no installer yet.
author | Dan Creswell <dan.creswell@gmail.com> |
---|---|
date | Sat, 21 Mar 2009 11:00:06 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:3dc0c5604566 |
---|---|
1 package org.dancres.blitz.config; | |
2 | |
3 /** | |
4 <p>Marker interface indicating a per-Entry type configuration variable. | |
5 EntryConstraints are per Entry-type requirements to | |
6 be asserted against such things as search behaviour.</p> | |
7 | |
8 <p>Per-Entry constraints are setup in the .config file as follows: | |
9 </p> | |
10 | |
11 <ol> | |
12 <li> Define a variable using the classname of the type, | |
13 replaceing . or $ with _. | |
14 </li> | |
15 <li>The variable should then be initialized to an array of | |
16 EntryConstraints specifying requirements. | |
17 </li> | |
18 </ol> | |
19 | |
20 <p>Here's an example that specifies a per-type cache size which overrides | |
21 the global default specified in <code>entryReposCacheSize</code> and | |
22 enables FIFO ordering for searches and writes of this class.</p> | |
23 | |
24 <pre> | |
25 org_dancres_blitz_SpaceFifonessTest_TestEntry = | |
26 new EntryConstraint[] {new CacheSize(1024), new Fifo()}; | |
27 </pre> | |
28 */ | |
29 public interface EntryConstraint { | |
30 } |