Commit Graph
1801 Commits
Author SHA1 Message Date
Adam Heath b0a2e51209 Start work in provides in inflight features.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950254 13f79535-47bb-0310-9956-ffa450edef68
2010-06-01 21:46:19 +00:00
Adam Heath 447ef0c1da add() now returns the newly added item, or one that was added
concurrently by another thread.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950253 13f79535-47bb-0310-9956-ffa450edef68
2010-06-01 21:46:13 +00:00
Jacques Le Roux 3d4e68c1f7 A patch from Sascha Rodekamp "Encapsulate Methods in the UtilHttp Method" (https://issues.apache.org/jira/browse/OFBIZ-3788) - OFBIZ-3788
The Methods getQueryStringOnlyParameterMap, getPathInfoOnlyParameterMap and getUrlOnlyParameterMap can be better encapsulated. It does not affect the workflow but makes it easier to use the API.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@949802 13f79535-47bb-0310-9956-ffa450edef68
2010-05-31 16:40:34 +00:00
Jacques Le Roux 52520adaab Clean imports, I also wondered if we should keep addAllFileTableValues which is not used internally (hence I guess useless) but I finally stopped as there were also some other Type Safety warnings and I did not have time to continue.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948460 13f79535-47bb-0310-9956-ffa450edef68
2010-05-26 14:48:00 +00:00
Adam Heath 6e07055341 Re-apply 948328, which brings us back to using the more efficient clhm,
but now UtilCache is not strictly least-recently-used.  Instead, it's
more of a less-recently-used.  This difference can be seen when reducing
the max-in-memory setting(but not reducing completely to 0).

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948449 13f79535-47bb-0310-9956-ffa450edef68
2010-05-26 14:23:11 +00:00
Adam Heath 14b1bc46a7 Remove unneeded cast.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948447 13f79535-47bb-0310-9956-ffa450edef68
2010-05-26 14:22:57 +00:00
Adam Heath 6a9efe212d Remove synchronized on masterClassManagers, switching to
FastMap(non-blocking).

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948446 13f79535-47bb-0310-9956-ffa450edef68
2010-05-26 14:22:51 +00:00
Adam Heath c2a39dcb52 Remove synchronized on staticTimers access(non-blocking).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948444 13f79535-47bb-0310-9956-ffa450edef68
2010-05-26 14:22:46 +00:00
Adam Heath d945ef3d65 Add putIfAbsent method; disk-based variant of this method is not yet
tested.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948333 13f79535-47bb-0310-9956-ffa450edef68
2010-05-26 06:04:59 +00:00
Adam Heath 464c710f02 JDBM isn't multi-thread safe, so protect against concurrent access.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948332 13f79535-47bb-0310-9956-ffa450edef68
2010-05-26 06:04:52 +00:00
Adam Heath bb2d32984f Inline postRemove, it's only called from one place.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948331 13f79535-47bb-0310-9956-ffa450edef68
2010-05-26 06:04:45 +00:00
Adam Heath 95e6fc9f7d Revert "As suggested by Ben Manes at "Upgrade ConcurrentLinkedHashMap" (https://issues.apache.org/jira/browse/OFBIZ-3779) - OFBIZ-3779"
The new library does *not* function correctly.  It breaks the
testChangeMemSize test case.  Reducing the memory size *must* still obey
the LRU settings; the new library removes items at random.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948328 13f79535-47bb-0310-9956-ffa450edef68
2010-05-26 05:52:11 +00:00
Jacques Le Roux 7aaf80b6c2 Fix a bug introduced while updating ConcurrentLinkedHashMap implementation at r947993. Reported by Christian on dev ML.
I used the default Weigher (see JavaDoc)

BTW this new implementation is really faster (tried with ArtifactInfo)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948037 13f79535-47bb-0310-9956-ffa450edef68
2010-05-25 13:38:39 +00:00
Jacques Le Roux 8a9c6ea716 As suggested by Ben Manes at "Upgrade ConcurrentLinkedHashMap" (https://issues.apache.org/jira/browse/OFBIZ-3779) - OFBIZ-3779
The UtilCache class should use v1.0 of the CLHM library. While the previous version is fully functional, I am no longer supporting it. The new design should be faster and more reliable due to not needing to use a pseudo LRU algorithm for performance (which has degradation scenarios). A true LRU is now supported with no lock contention issues. Please consider upgrading when convenient.

http://code.google.com/p/concurrentlinkedhashmap/

JavaDoc:
http://concurrentlinkedhashmap.googlecode.com/svn/wiki/release-1.0-LRU/index.html

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@947993 13f79535-47bb-0310-9956-ffa450edef68
2010-05-25 10:08:04 +00:00
Scott Gray 86457f2510 Removed redundant null check
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@944487 13f79535-47bb-0310-9956-ffa450edef68
2010-05-14 21:37:33 +00:00
Scott Gray 3d643b426a The following deprecated methods have been removed from org.ofbiz.base.util.UtilXml:
writeXmlDocument(OutputStream, Element, OutputFormat)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@944486 13f79535-47bb-0310-9956-ffa450edef68
2010-05-14 21:37:24 +00:00
Scott Gray a4e5993cab The following deprecated methods have been removed from org.ofbiz.base.util.StringUtil:
htmlSpecialChars(String)
- Use StringUtil.HtmlEncoder.encode(String) instead

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@944180 13f79535-47bb-0310-9956-ffa450edef68
2010-05-14 09:47:27 +00:00
Scott Gray 11adb3c8c4 The following deprecated methods have been removed from org.ofbiz.base.util.cache.UtilCache:
setMaxSize(int)
- Use setMaxInMemory(int) instead
getMaxSize()
- Use getMaxInMemory() instead
hasExpired(Object)
clearExpired()
clearExpiredFromAllCaches()

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@944179 13f79535-47bb-0310-9956-ffa450edef68
2010-05-14 09:47:14 +00:00
David E. Jones 125c247997 Removed extra space; no functional changes
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@943842 13f79535-47bb-0310-9956-ffa450edef68
2010-05-13 08:30:25 +00:00
Scott Gray d32a394855 Fix bug in UtilCache, setSizeLimit(int) had no effect
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@943755 13f79535-47bb-0310-9956-ffa450edef68
2010-05-12 23:55:24 +00:00
Scott Gray 52b08f4574 Removed all references to the deprecated GenericDelegator method findAll(String)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@938947 13f79535-47bb-0310-9956-ffa450edef68
2010-04-28 11:30:23 +00:00
Scott Gray 865932107b Removed some references to deprecated method names.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@938946 13f79535-47bb-0310-9956-ffa450edef68
2010-04-28 11:29:45 +00:00
Erwan de Ferrieres 4588877bc2 forgot to remove those file from the SVN at r938061. Thanks Jacopo
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@938074 13f79535-47bb-0310-9956-ffa450edef68
2010-04-26 14:54:17 +00:00
Erwan de Ferrieres 6d82a3d889 Migration to Tomcat 6.0.26. Tests are running well
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@938061 13f79535-47bb-0310-9956-ffa450edef68
2010-04-26 14:33:43 +00:00
Erwan de Ferrieres e268db4a97 Adding a new display type "accouting-number", which allows to display negatives in parentheses
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@937964 13f79535-47bb-0310-9956-ffa450edef68
2010-04-26 08:51:25 +00:00
Adam Heath e3b9b75242 Don't create a temporary string to hold the digestChars.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935383 13f79535-47bb-0310-9956-ffa450edef68
2010-04-18 18:03:59 +00:00
Adam Heath 95949ff2b7 Add <test-jar> macro.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935381 13f79535-47bb-0310-9956-ffa450edef68
2010-04-18 18:03:47 +00:00
Adam Heath f2bfef6274 Create a main-jar macro.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935380 13f79535-47bb-0310-9956-ffa450edef68
2010-04-18 18:03:37 +00:00
Adrian Crum 70f5bc5ea7 Fixed a bug in TimeDuration.java. Added test for same.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935372 13f79535-47bb-0310-9956-ffa450edef68
2010-04-18 17:52:01 +00:00
Adrian Crum 52f2ba2b1f Fixed a bug in ComparableRange.equals method, added test for same.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935371 13f79535-47bb-0310-9956-ffa450edef68
2010-04-18 17:39:22 +00:00
Adrian Crum eb88470d5f Minor JavaDoc changes in Range.java. No functional change.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935369 13f79535-47bb-0310-9956-ffa450edef68
2010-04-18 17:30:10 +00:00
Scott Gray f8354e3fa4 Get rid of a bunch of Integer instantiations
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935163 13f79535-47bb-0310-9956-ffa450edef68
2010-04-17 10:27:15 +00:00
Scott Gray 28ca28af2c Removed unused imports and added @Override where needed
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935139 13f79535-47bb-0310-9956-ffa450edef68
2010-04-17 07:12:33 +00:00
Scott Gray e1c4500603 Fix the StringToBigDecimal converter to not use an interim double value unless it absolutely has to
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935137 13f79535-47bb-0310-9956-ffa450edef68
2010-04-17 07:09:11 +00:00
Adrian Crum b6e2455579 An improved Assert class - replaces the one I took out.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935096 13f79535-47bb-0310-9956-ffa450edef68
2010-04-16 23:29:07 +00:00
Adrian Crum 0909a29080 One more small performance tweak for TimeDuration.java.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@934543 13f79535-47bb-0310-9956-ffa450edef68
2010-04-15 18:50:04 +00:00
Adrian Crum b5bd489ca5 Fixed a TimeDuration speed issue that was revealed by Coburtura.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@934289 13f79535-47bb-0310-9956-ffa450edef68
2010-04-15 05:10:59 +00:00
Adrian Crum 896222b7fe Revert unintentional file change.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@934211 13f79535-47bb-0310-9956-ffa450edef68
2010-04-14 21:54:29 +00:00
Adrian Crum fa825dd956 Reverting my last commits. I just found out Apache Commons Validate does the same thing.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@934179 13f79535-47bb-0310-9956-ffa450edef68
2010-04-14 20:22:26 +00:00
Adrian Crum beb4b8bcaa Small fixup for last commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@934169 13f79535-47bb-0310-9956-ffa450edef68
2010-04-14 20:09:42 +00:00
Adrian Crum a05a3dfcab Added an Assert class. It should make argument checking easier.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@934166 13f79535-47bb-0310-9956-ffa450edef68
2010-04-14 20:03:46 +00:00
Adrian Crum 84626504a0 Updated the ICU4J library.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@933324 13f79535-47bb-0310-9956-ffa450edef68
2010-04-12 17:06:42 +00:00
Bruno Busco 5d5e489598 A patch from Blas Rodriguez Somoza
OFBIZ-3637 - XHTML validation errors (framework excluding widget) round 2
https://issues.apache.org/jira/browse/OFBIZ-3637

XHTML validation errors

    * Unclosed tags INPUT, IMG, BR...
    * attributes without values (checked, selected, disabled, etc)
    * attribute values without "
    * required attributes not included (alt in img, type in style, type in script etc)
    * Uppercase tags or attributes.
    * Unencoded entities (ampersands).

Other changes:

selectall.js
line 333. ajaxAutoCompleter must work with unenconded or encoded ampersands.

EntityRefMain.ftl
line 176. <div> must be </div>


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@932733 13f79535-47bb-0310-9956-ffa450edef68
2010-04-10 14:35:07 +00:00
Adam Heath fcd5a641ad s/test-case/test-group/, taken from OFBIZ-3661, so that all tests will
be run.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@932233 13f79535-47bb-0310-9956-ffa450edef68
2010-04-09 03:19:27 +00:00
Adam Heath c279273652 Don't specify java.io.Serializable fully, import it instead.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@932102 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 20:47:30 +00:00
Adam Heath 1922547f81 Fix bad exception logging pattern, now you actually get an exception
trace.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@932101 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 20:47:24 +00:00
Adrian Crum 11f0e07d97 Corrected spelling/grammar.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930741 13f79535-47bb-0310-9956-ffa450edef68
2010-04-04 19:44:06 +00:00
Adam Heath 160e608257 Thread-pool baesd dependency resolution framework. This implementation
is also non-blocking.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930739 13f79535-47bb-0310-9956-ffa450edef68
2010-04-04 19:14:04 +00:00
Adam Heath 688dbbdbf9 Remove static ExecutionPoolFactory; it was only used internally, and the
original implementation that this was based on did more, which required
it to be a separate class.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930736 13f79535-47bb-0310-9956-ffa450edef68
2010-04-04 19:08:40 +00:00
Adam Heath 7edfb25c62 Remove synchronized here too; again, since we are adding/removing from a
cache, if 2 threads happen to not find anything, then it will just cause
a little bit of duplicated work.  It's better to that, then have a block
occur.  Class loading causes static constructors to run, which might end
up calling into the thread context class loader, which then might end up
starting other threads, which then could end up calling back into this
code path; instant dead-lock.  So, removing a lock stops the dead-lock
possibility.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930735 13f79535-47bb-0310-9956-ffa450edef68
2010-04-04 19:08:34 +00:00