Configuration.java revision 833
58N/A * See LICENSE.txt included in this distribution for the specific
58N/A * file and include the License file at LICENSE.txt.
77N/A * package scope, but that didn't work with the XMLDecoder/XMLEncoder.
418N/Apublic final class Configuration {
58N/A private boolean historyCache;
58N/A private int historyCacheTime;
773N/A private boolean historyCacheInDB;
65N/A private boolean generateHtml;
99N/A private int indexWordLimit;
125N/A private boolean allowLeadingWildcard;
173N/A private boolean remoteScmSupported;
253N/A private boolean optimizeDatabase;
296N/A private boolean useLuceneLocking;
335N/A private boolean compressXref;
480N/A private boolean indexVersionedFilesOnly;
816N/A private int hitsPerPage;
816N/A private int cachePages;
58N/A public Configuration() {
58N/A setHistoryCache(true);
773N/A setHistoryCacheInDB(false);
99N/A setVerbose(false);
101N/A setGenerateHtml(true);
106N/A setQuickContextScan(true);
173N/A setRemoteScmSupported(false);
253N/A setOptimizeDatabase(true);
296N/A setUsingLuceneLocking(false);
335N/A setCompressXref(true);
480N/A setIndexVersionedFilesOnly(false);
816N/A public int getCachePages() {
816N/A return cachePages;
816N/A public int getHitsPerPage() {
816N/A return hitsPerPage;
58N/A public boolean isHistoryCache() {
58N/A return historyCache;
58N/A public int getHistoryCacheTime() {
58N/A return historyCacheTime;
773N/A public boolean isHistoryCacheInDB() {
773N/A return historyCacheInDB;
58N/A return sourceRoot;
58N/A return repositories;
65N/A public boolean isGenerateHtml() {
65N/A return generateHtml;
77N/A return defaultProject;
99N/A public int getIndexWordLimit() {
99N/A return indexWordLimit;
125N/A public boolean isAllowLeadingWildcard() {
125N/A return allowLeadingWildcard;
106N/A private boolean quickContextScan;
106N/A public boolean isQuickContextScan() {
106N/A return quickContextScan;
112N/A return ignoredNames;
129N/A return bugPattern;
318N/A return reviewPage;
318N/A return reviewPattern;
173N/A public boolean isRemoteScmSupported() {
173N/A return remoteScmSupported;
253N/A public boolean isOptimizeDatabase() {
253N/A return optimizeDatabase;
296N/A public boolean isUsingLuceneLocking() {
296N/A return useLuceneLocking;
335N/A public boolean isCompressXref() {
335N/A return compressXref;
480N/A public boolean isIndexVersionedFilesOnly() {
480N/A return indexVersionedFilesOnly;
833N/A return databaseDriver;
833N/A return databaseUrl;
640N/A e.writeObject(this);
639N/A public static Configuration makeXMLStringAsConfiguration(String xmlconfig) throws IOException {