Permalink
Browse files

uploaded the core JPublish framework

  • Loading branch information...
florin.patrascu
florin.patrascu committed May 15, 2007
0 parents commit bc2916475eed054a6a008ad1b35127948aa3c526
Showing with 19,089 additions and 0 deletions.
  1. +3 −0 BUILDING.txt
  2. +4 −0 CHANGELOG.txt
  3. +7 −0 CONTRIB.txt
  4. +3 −0 ROADMAP.txt
  5. +37 −0 build.properties
  6. +131 −0 build.xml
  7. +151 −0 checkstyle.xml
  8. +3 −0 dependencies/readme.txt
  9. +40 −0 java/src/ehcache.xml
  10. +96 −0 java/src/org/jpublish/ComponentManager.java
  11. +38 −0 java/src/org/jpublish/Configurable.java
  12. +76 −0 java/src/org/jpublish/Content.java
  13. +48 −0 java/src/org/jpublish/ContentNotFoundException.java
  14. +47 −0 java/src/org/jpublish/ErrorHandler.java
  15. +60 −0 java/src/org/jpublish/JPublishCacheException.java
  16. +121 −0 java/src/org/jpublish/JPublishComponent.java
  17. +320 −0 java/src/org/jpublish/JPublishContext.java
  18. +94 −0 java/src/org/jpublish/JPublishError.java
  19. +81 −0 java/src/org/jpublish/JPublishException.java
  20. +58 −0 java/src/org/jpublish/JPublishModule.java
  21. +70 −0 java/src/org/jpublish/JPublishRuntimeException.java
  22. +318 −0 java/src/org/jpublish/Page.java
  23. +166 −0 java/src/org/jpublish/PageManager.java
  24. +157 −0 java/src/org/jpublish/Repository.java
  25. +127 −0 java/src/org/jpublish/RepositoryWrapper.java
  26. +60 −0 java/src/org/jpublish/ReservedNameException.java
  27. +1,446 −0 java/src/org/jpublish/SiteContext.java
  28. +149 −0 java/src/org/jpublish/StaticResourceManager.java
  29. +252 −0 java/src/org/jpublish/Template.java
  30. +129 −0 java/src/org/jpublish/TemplateManager.java
  31. +55 −0 java/src/org/jpublish/TemplateMergeException.java
  32. +43 −0 java/src/org/jpublish/action/Action.java
  33. +723 −0 java/src/org/jpublish/action/ActionManager.java
  34. +82 −0 java/src/org/jpublish/action/ActionNotFoundException.java
  35. +65 −0 java/src/org/jpublish/action/ActionWrapper.java
  36. +69 −0 java/src/org/jpublish/action/PathAction.java
  37. +213 −0 java/src/org/jpublish/action/ScriptAction.java
  38. +229 −0 java/src/org/jpublish/component/AbstractComponent.java
  39. +54 −0 java/src/org/jpublish/component/ComponentMap.java
  40. +68 −0 java/src/org/jpublish/component/ComponentWrapper.java
  41. +56 −0 java/src/org/jpublish/component/ContentComponent.java
  42. +121 −0 java/src/org/jpublish/component/InMemoryComponentManager.java
  43. +41 −0 java/src/org/jpublish/error/AbstractErrorHandler.java
  44. +40 −0 java/src/org/jpublish/error/DefaultErrorHandler.java
  45. +148 −0 java/src/org/jpublish/page/AbstractPageManager.java
  46. +138 −0 java/src/org/jpublish/page/PageDefinition.java
  47. +73 −0 java/src/org/jpublish/page/PageDefinitionCacheEntry.java
  48. +394 −0 java/src/org/jpublish/page/PageInstance.java
  49. +56 −0 java/src/org/jpublish/page/PageNotFoundException.java
  50. +169 −0 java/src/org/jpublish/page/PageProperty.java
  51. +124 −0 java/src/org/jpublish/page/db/DBPageIterator.java
  52. +313 −0 java/src/org/jpublish/page/db/DBPageManager.java
  53. +6 −0 java/src/org/jpublish/page/db/page.sql
  54. +132 −0 java/src/org/jpublish/page/filesystem/AbstractFileSystemPageManager.java
  55. +104 −0 java/src/org/jpublish/page/filesystem/FileSystemPageIterator.java
  56. +253 −0 java/src/org/jpublish/page/filesystem/FileSystemPageManager.java
  57. +327 −0 java/src/org/jpublish/page/filesystem/FileSystemPageManagerWithContextDefault.java
  58. +296 −0 java/src/org/jpublish/page/filesystem/FileSystemPageManagerWithDefault.java
  59. +98 −0 java/src/org/jpublish/page/servletcontext/ServletContextPageIterator.java
  60. +186 −0 java/src/org/jpublish/page/servletcontext/ServletContextPageManager.java
  61. +100 −0 java/src/org/jpublish/page/xml/XMLPageIterator.java
  62. +307 −0 java/src/org/jpublish/page/xml/XMLPageManager.java
  63. +145 −0 java/src/org/jpublish/repository/AbstractRepository.java
  64. +212 −0 java/src/org/jpublish/repository/RepositoryContent.java
  65. +375 −0 java/src/org/jpublish/repository/db/DBRepository.java
  66. +99 −0 java/src/org/jpublish/repository/filesystem/AbstractFileSystemRepository.java
  67. +456 −0 java/src/org/jpublish/repository/filesystem/ExtendedFileSystemRepository.java
  68. +97 −0 java/src/org/jpublish/repository/filesystem/FileSystemPathIterator.java
  69. +283 −0 java/src/org/jpublish/repository/filesystem/FileSystemRepository.java
  70. +83 −0 java/src/org/jpublish/repository/servletcontext/ServletContextPathIterator.java
  71. +212 −0 java/src/org/jpublish/repository/servletcontext/ServletContextRepository.java
  72. +200 −0 java/src/org/jpublish/repository/web/WebRepository.java
  73. +73 −0 java/src/org/jpublish/resource/AbstractStaticResourceManager.java
  74. +236 −0 java/src/org/jpublish/resource/filesystem/FileSystemStaticResourceManager.java
  75. +790 −0 java/src/org/jpublish/servlet/JPublishServlet.java
  76. +73 −0 java/src/org/jpublish/template/AbstractTemplateManager.java
  77. +77 −0 java/src/org/jpublish/template/TemplateCacheEntry.java
  78. +142 −0 java/src/org/jpublish/template/TemplateContent.java
  79. +100 −0 java/src/org/jpublish/template/filesystem/FileSystemTemplateIterator.java
  80. +300 −0 java/src/org/jpublish/template/filesystem/FileSystemTemplateManager.java
  81. +142 −0 java/src/org/jpublish/util/BreadthFirstFileTreeIterator.java
  82. +154 −0 java/src/org/jpublish/util/BreadthFirstPathTreeIterator.java
  83. +72 −0 java/src/org/jpublish/util/CacheEntry.java
  84. +135 −0 java/src/org/jpublish/util/CharacterEncodingManager.java
  85. +125 −0 java/src/org/jpublish/util/CharacterEncodingMap.java
  86. +74 −0 java/src/org/jpublish/util/DateUtilities.java
  87. +124 −0 java/src/org/jpublish/util/DepthFirstFileTreeIterator.java
  88. +134 −0 java/src/org/jpublish/util/DepthFirstPathTreeIterator.java
  89. +24 −0 java/src/org/jpublish/util/DummyClass.java
  90. +237 −0 java/src/org/jpublish/util/FileCopyUtils.java
  91. +87 −0 java/src/org/jpublish/util/FileToPathIterator.java
  92. +100 −0 java/src/org/jpublish/util/InternalURI.java
  93. +79 −0 java/src/org/jpublish/util/InternalURIParser.java
  94. +112 −0 java/src/org/jpublish/util/JPublishCache.java
  95. +218 −0 java/src/org/jpublish/util/JPublishCacheImpl.java
  96. +148 −0 java/src/org/jpublish/util/JPublishCacheManager.java
  97. +145 −0 java/src/org/jpublish/util/JPublishSimpleCacheImpl.java
  98. +157 −0 java/src/org/jpublish/util/JPublishWhirlyCacheImpl.java
  99. +33 −0 java/src/org/jpublish/util/LogSystem.java
  100. +47 −0 java/src/org/jpublish/util/MessageUtilities.java
  101. +80 −0 java/src/org/jpublish/util/MimeType.java
  102. +91 −0 java/src/org/jpublish/util/MimeTypeMap.java
  103. +74 −0 java/src/org/jpublish/util/NumberUtilities.java
  104. +193 −0 java/src/org/jpublish/util/PathDispatcherManager.java
  105. +193 −0 java/src/org/jpublish/util/PathUtilities.java
  106. +92 −0 java/src/org/jpublish/util/RepositoryURI.java
  107. +81 −0 java/src/org/jpublish/util/ServletContextResourceLoader.java
  108. +189 −0 java/src/org/jpublish/util/URLUtilities.java
  109. +181 −0 java/src/org/jpublish/util/vfs/VFSFile.java
  110. +39 −0 java/src/org/jpublish/util/vfs/VFSProvider.java
  111. +123 −0 java/src/org/jpublish/util/vfs/VFSUtilities.java
  112. +89 −0 java/src/org/jpublish/util/vfs/provider/filesystem/FileSystemProvider.java
  113. +58 −0 java/src/org/jpublish/view/ViewRenderException.java
  114. +88 −0 java/src/org/jpublish/view/ViewRenderer.java
  115. +112 −0 java/src/org/jpublish/view/freemarker/FreeMarkerViewContext.java
  116. +164 −0 java/src/org/jpublish/view/freemarker/FreeMarkerViewRenderer.java
  117. +102 −0 java/src/org/jpublish/view/freemarker/JPublishTemplateLoader.java
  118. +109 −0 java/src/org/jpublish/view/raw/RawViewRenderer.java
  119. +166 −0 java/src/org/jpublish/view/velocity/JPublishResourceLoader.java
  120. +64 −0 java/src/org/jpublish/view/velocity/VelocityViewContext.java
  121. +283 −0 java/src/org/jpublish/view/velocity/VelocityViewRenderer.java
  122. +127 −0 java/src/org/jpublish/view/webmacro/WebMacroViewRenderer.java
  123. +38 −0 java/src/whirlycache.xml
  124. +53 −0 lib/LICENCE.bsf
  125. +49 −0 lib/LICENSE.ant
  126. BIN lib/Piccolo.jar
  127. BIN lib/PostEden-1.5.3.jar
  128. BIN lib/asm-2.2.2.jar
  129. BIN lib/bsf.jar
  130. BIN lib/bsh-1.3.0.jar
  131. BIN lib/commons-collections-3.1.jar
  132. BIN lib/commons-lang.jar
  133. BIN lib/commons-logging.jar
  134. BIN lib/commons-vfs-1.0-dev.jar
  135. +55 −0 lib/commons-vfs-1.0-dev.license.txt
  136. BIN lib/concurrent-1.3.4.jar
  137. BIN lib/crimson.jar
  138. BIN lib/ehcache-1.2.2.jar
  139. BIN lib/emma.jar
  140. BIN lib/emma_ant.jar
  141. BIN lib/freemarker.jar
  142. BIN lib/janino.jar
  143. BIN lib/javax.servlet.jar
  144. BIN lib/jaxp.jar
  145. BIN lib/jdom-1.0.jar
  146. BIN lib/jruby.jar
  147. BIN lib/js.jar
  148. BIN lib/junit-3.8.1.jar
  149. BIN lib/junit.jar
  150. BIN lib/jvyaml.jar
  151. BIN lib/jython.jar
  152. +142 −0 lib/jython.license.txt
  153. BIN lib/plaincharset.jar
  154. BIN lib/servlet-api-2.4.jar
  155. BIN lib/spring.jar
  156. BIN lib/velocity-1.5.jar
  157. BIN lib/webmacro.jar
  158. BIN lib/whirlycache-1.0.1.jar
  159. +201 −0 license.txt
  160. +23 −0 notice.txt
  161. +18 −0 readme.txt
  162. 0 samples/hello.war/WEB-INF/classes/VM_global_library.vm
  163. +25 −0 samples/hello.war/WEB-INF/classes/log4j.properties
  164. +46 −0 samples/hello.war/WEB-INF/jpublish.xml
  165. +10 −0 samples/hello.war/WEB-INF/velocity.properties
  166. +28 −0 samples/hello.war/WEB-INF/web.xml
  167. +1 −0 samples/hello.war/actions/readme.txt
  168. +1 −0 samples/hello.war/content/index.html
  169. +4 −0 samples/hello.war/pages/default.xml
  170. +10 −0 samples/hello.war/public/styles/simple.css
  171. +12 −0 samples/hello.war/templates/basic.html
@@ -0,0 +1,3 @@
+To build JPublish you will first need to check out the source code from
+the SVN. Install the most recent version of Ant on your system. Once
+Ant is installed, change into the jpublish root directory and type ant.
@@ -0,0 +1,4 @@
+JPublish change log:
+
+Version 4.0 (2007.05.14)
+ - Initial release
@@ -0,0 +1,7 @@
+Anthony Eden <anthonyeden@gmail.com>
+Florin T.PATRASCU <florin.patrascu@gmail.com>
+Shannon -jj Behrens <jjinux@users.sourceforge.net>
+Kalman Laszlo <klaszlo@users.sourceforge.net>
+Florian Gnaegi <gnaegi@id.unizh.ch>
+David E. Jones <jonesde@ofbiz.org>
+Andy Zeneski <jaz@ofbiz.org>
@@ -0,0 +1,3 @@
+ROADMAP
+
+Version 4.01
@@ -0,0 +1,37 @@
+# This file contains property settings that control the Ant build.xml file.
+
+copyright=(c)2007 the original author or authors.
+
+name=jpublish
+Name=JPublish
+version=4
+
+root.dir=..
+src.dir=java/src
+test.dir=java/test
+
+docs.dir=docs
+lib.dir=lib
+build.dir=build
+dist.dir=dist
+samples.dir=samples
+components.dir=components
+modules.dir=modules
+
+
+vName=${Name}-${version}
+vname=${name}-${version}
+
+build.classes=${build.dir}/classes
+build.docs=${build.dir}/docs
+build.javadocs=${build.docs}/api
+build.samples=${build.dir}/samples
+
+packages=org.jpublish.*
+
+javac.debug=on
+javac.deprecation=off
+javac.optimize=on
+
+javadoc.author=true
+javadoc.version=true
131 build.xml
@@ -0,0 +1,131 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+
+<project name="JPublish" default="jar" basedir=".">
+
+ <property file="build.properties"/>
+
+
+ <!-- Setup module paths -->
+ <property name="module.dir" value="${root.dir}/modules"/>
+
+ <path id="build.classpath">
+ <fileset dir="${lib.dir}">
+ <include name="**/*.jar"/>
+ </fileset>
+ </path>
+
+ <!-- ==================================================== -->
+ <!-- Initialize Ant -->
+ <!-- ==================================================== -->
+
+ <target name="init">
+ <tstamp/>
+ <mkdir dir="${build.dir}"/>
+ <mkdir dir="${dist.dir}"/>
+ </target>
+
+ <!-- Compiler resources -->
+ <patternset id="compiler.resources">
+ <include name="**/?*.properties"/>
+ <include name="**/?*.xml"/>
+ <include name="**/?*.vm"/>
+ </patternset>
+
+
+ <!-- ====================================================================== -->
+ <!-- Compile the source code. -->
+ <!-- ====================================================================== -->
+
+ <target name="compile" depends="init">
+
+ <mkdir dir="${build.classes}"/>
+
+ <javac
+ srcdir="${src.dir}"
+ destdir="${build.classes}"
+ classpathref="build.classpath"
+ debug="${javac.debug}"
+ deprecation="${javac.deprecation}"
+ optimize="${javac.optimize}">
+ <include name="**/*.java"/>
+ </javac>
+
+ <copy todir="${build.classes}">
+ <fileset dir="${src.dir}">
+ <patternset refid="compiler.resources"/>
+ <type type="file"/>
+ </fileset>
+ </copy>
+
+
+ </target>
+
+ <!-- ====================================================================== -->
+ <!-- Create the JAR archive. -->
+ <!-- ====================================================================== -->
+
+ <target name="jar" depends="compile">
+ <jar jarfile="${dist.dir}/${Name}-${version}.jar" basedir="${build.classes}">
+ <include name="**/*.class"/>
+ <include name="**/?*.properties"/>
+ <include name="**/?*.xml"/>
+ <include name="**/?*.vm"/>
+ </jar>
+ <copy file="LICENSE.txt" tofile="${dist.dir}/${Name}-${version}.license.txt"/>
+ </target>
+
+ <!-- ====================================================================== -->
+ <!-- Create the demo web apps archive. -->
+ <!-- ====================================================================== -->
+
+ <target name="samples" depends="jar">
+ <echo message="Building the JPublish web demo applications:"/>
+ <echo message="... hello.war"/>
+
+ <copy todir="${build.samples}/hello.war">
+ <fileset dir="${samples.dir}/hello.war" includes="**/*.*"/>
+ </copy>
+ <copy todir="${build.samples}/hello.war/WEB-INF/lib">
+ <fileset dir="${lib.dir}">
+ <include name="**/*.jar"/>
+ </fileset>
+ <fileset dir="${dist.dir}">
+ <include name="**/*.*"/>
+ </fileset>
+ </copy>
+
+ </target>
+
+ <!-- ====================================================================== -->
+ <!-- Generate the API documentation. -->
+ <!-- ====================================================================== -->
+
+ <target name="javadocs" depends="init">
+ <mkdir dir="${build.javadocs}"/>
+ <javadoc
+ packagenames="${packages}"
+ sourcepath="${src.dir}"
+ destdir="${build.javadocs}"
+ classpathref="build.classpath"
+ author="${javadoc.author}"
+ version="${javadoc.version}"
+ windowtitle="${vName} API"
+ doctitle="${vName}"
+ bottom="${copyright}"/>
+ </target>
+
+ <!-- ====================================================================== -->
+ <!-- Execute the JUnit tests -->
+ <!-- ====================================================================== -->
+
+
+ <!-- ====================================================================== -->
+ <!-- Clean up generated stuff -->
+ <!-- ====================================================================== -->
+
+ <target name="clean">
+ <delete dir="${build.dir}"/>
+ <delete dir="${dist.dir}"/>
+ </target>
+
+</project>
@@ -0,0 +1,151 @@
+<?xml version="1.0"?>
+<!DOCTYPE module PUBLIC
+ "-//Puppy Crawl//DTD Check Configuration 1.1//EN"
+ "http://www.puppycrawl.com/dtds/configuration_1_1.dtd">
+
+
+<module name="Checker">
+
+ <!-- Checks that a package.html file exists for each package. -->
+ <!-- See http://checkstyle.sf.net/config_javadoc.html#PackageHtml -->
+ <module name="PackageHtml"/>
+
+ <!-- Checks whether files end with a new line. -->
+ <!-- See http://checkstyle.sf.net/config_misc.html#NewlineAtEndOfFile -->
+ <module name="NewlineAtEndOfFile"/>
+
+ <!-- Checks that property files contain the same keys. -->
+ <!-- See http://checkstyle.sf.net/config_misc.html#Translation -->
+ <module name="Translation"/>
+
+ <module name="TreeWalker">
+
+ <property name="cacheFile" value="${checkstyle.cache.file}"/>
+
+ <!-- ************************************************************** -->
+ <!-- Checks that are different from the sun coding conventions ones -->
+ <!-- ************************************************************** -->
+<!-- <module name="Header">
+ <property name="headerFile" value="${basedir}/LICENSE.txt"/>
+ <property name="ignoreLines" value="1,2,3,4,5,6"/>
+ </module>
+-->
+ <property name="tabWidth" value="4"/>
+ <module name="LeftCurly">
+ <property name="option" value="nl"/>
+ </module>
+ <module name="RightCurly">
+ <property name="option" value="alone"/>
+ </module>
+ <module name="LineLength">
+ <property name="max" value="132"/>
+ </module>
+ <module name="MethodLength">
+ <property name="max" value="175"/>
+ </module>
+ <!-- No Paren pad check
+ <module name="ParenPad"/>
+ -->
+ <module name="ConstantName">
+ <property name="format" value="log|^[a-zA-Z][a-zA-Z0-9_]*$"/>
+ </module>
+
+ <!-- ************************************************************** -->
+ <!-- Default Sun coding conventions checks -->
+ <!-- ************************************************************** -->
+
+ <!-- Checks for Javadoc comments. -->
+ <!-- See http://checkstyle.sf.net/config_javadoc.html -->
+ <module name="JavadocMethod"/>
+ <module name="JavadocType"/>
+ <module name="JavadocVariable"/>
+
+
+ <!-- Checks for Naming Conventions. -->
+ <!-- See http://checkstyle.sf.net/config_naming.html -->
+ <module name="LocalFinalVariableName"/>
+ <module name="LocalVariableName"/>
+ <module name="MethodName"/>
+ <module name="PackageName"/>
+ <module name="ParameterName"/>
+ <module name="StaticVariableName"/>
+ <module name="TypeName"/>
+ <module name="MemberName"/>
+
+ <!-- Checks for imports -->
+ <!-- See http://checkstyle.sf.net/config_import.html -->
+ <module name="AvoidStarImport"/>
+ <module name="IllegalImport"/> <!-- defaults to sun.* packages -->
+ <module name="RedundantImport"/>
+ <module name="UnusedImports"/>
+
+
+ <!-- Checks for Size Violations. -->
+ <!-- See http://checkstyle.sf.net/config_sizes.html -->
+ <module name="FileLength"/>
+ <module name="ParameterNumber"/>
+
+
+ <!-- Checks for whitespace -->
+ <!-- See http://checkstyle.sf.net/config_whitespace.html -->
+ <module name="EmptyForIteratorPad"/>
+ <module name="NoWhitespaceAfter"/>
+ <module name="NoWhitespaceBefore"/>
+ <module name="OperatorWrap"/>
+ <module name="TabCharacter"/>
+ <module name="WhitespaceAfter"/>
+ <module name="WhitespaceAround"/>
+
+
+ <!-- Modifier Checks -->
+ <!-- See http://checkstyle.sf.net/config_modifiers.html -->
+ <module name="ModifierOrder"/>
+ <module name="RedundantModifier"/>
+
+
+ <!-- Checks for blocks. You know, those {}'s -->
+ <!-- See http://checkstyle.sf.net/config_blocks.html -->
+ <module name="AvoidNestedBlocks"/>
+ <module name="EmptyBlock"/>
+
+ <module name="NeedBraces"/>
+
+
+ <!-- Checks for common coding problems -->
+ <!-- See http://checkstyle.sf.net/config_coding.html -->
+ <module name="AvoidInlineConditionals"/>
+ <module name="DoubleCheckedLocking"/>
+ <module name="EmptyStatement"/>
+ <module name="EqualsHashCode"/>
+ <module name="HiddenField"/>
+ <module name="IllegalInstantiation"/>
+ <module name="InnerAssignment"/>
+ <module name="MagicNumber"/>
+ <module name="MissingSwitchDefault"/>
+ <module name="RedundantThrows"/>
+ <module name="SimplifyBooleanExpression"/>
+ <module name="SimplifyBooleanReturn"/>
+
+ <!-- Checks for class design -->
+ <!-- See http://checkstyle.sf.net/config_design.html -->
+ <module name="DesignForExtension"/>
+ <module name="FinalClass"/>
+ <module name="HideUtilityClassConstructor"/>
+ <module name="InterfaceIsType"/>
+ <module name="VisibilityModifier"/>
+
+
+ <!-- Miscellaneous other checks. -->
+ <!-- See http://checkstyle.sf.net/config_misc.html -->
+ <module name="ArrayTypeStyle"/>
+ <module name="FinalParameters"/>
+ <module name="GenericIllegalRegexp">
+ <property name="format" value="\s+$"/>
+ <property name="message" value="Line has trailing spaces."/>
+ </module>
+ <module name="TodoComment"/>
+ <module name="UpperEll"/>
+
+ </module>
+
+</module>
@@ -0,0 +1,3 @@
+This folder will contain various applications, modules or libraries initially required by JPublish to run. However, we will try to deprecate their usage and streamline the core JPublish distribution.
+
+-florin
@@ -0,0 +1,40 @@
+<!--
+ ~ Copyright 2004-2007 the original author or authors.
+ ~
+ ~ Licensed under the Apache License, Version 2.0 (the "License");
+ ~ you may not use this file except in compliance with the License.
+ ~ You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing, software
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ ~ See the License for the specific language governing permissions and
+ ~ limitations under the License.
+ ~
+ -->
+
+<ehcache>
+ <diskStore path="java.io.tmpdir"/>
+
+ <!-- Sample cache named defaultCache
+ This cache contains a maximum in memory of 10000 elements, and will expire
+ an element if it is idle for more than 5 minutes and lives for more than
+ 10 minutes. Exxample:
+ timeToIdleSeconds="300"
+ timeToLiveSeconds="600"
+
+ If there are more than 10000 elements it will overflow to the
+ disk cache, which in this configuration will go to wherever java.io.tmp is
+ defined on your system. On a standard Linux system this will be /tmp"
+ -->
+ <defaultCache
+ maxElementsInMemory="10000"
+ eternal="false"
+ overflowToDisk="true"
+ timeToIdleSeconds="10"
+ timeToLiveSeconds="20"
+ />
+</ehcache>
+
Oops, something went wrong.

0 comments on commit bc29164

Please sign in to comment.