Adam Heath
7fcec6d23b
First bit of real webslinger code. TTLObject is designed to save the
...
result of a single method call, so that it doesn't get called over and
over again. It's non-blocking in all cases, supports synchronous and
asynchronous update modes, and will even save thrown exceptions.
Nothing in ofbiz uses this yet; that will require rather extensive
testing and profiling, which is difficult until more of ofbiz actually
has full test coverage; there's no reason to fix any slowdowns now until
you know all code is actually correct.
Test coverage on TTLObject is almost completely full; there are some
missed branches on switch statements that use enum(there are google
discussions about this, it's just not possible to do). Some of the
configuration methods aren't covered either. However, all switch
branches *are* covered.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@904987 13f79535-47bb-0310-9956-ffa450edef68
2010-01-31 06:34:35 +00:00
Adam Heath
d86c60c3ba
Add a helper method to test futures.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@904986 13f79535-47bb-0310-9956-ffa450edef68
2010-01-31 06:27:41 +00:00
Adam Heath
9ef56b79aa
Delete cobertura.dat for each run, so that different runs don't overlap
...
each others line numbers.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@904985 13f79535-47bb-0310-9956-ffa450edef68
2010-01-31 06:26:57 +00:00
Adrian Crum
cddeb581b9
Partially revert my last commit.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@904971 13f79535-47bb-0310-9956-ffa450edef68
2010-01-31 04:00:57 +00:00
Adrian Crum
988097907e
Based on advice from Adam Heath, made FlexibleMapAccessor and UelUtil methods syntactically correct. Methods that read Maps take read-only Map arguments, and methods that write Maps take writable Map arguments.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@904962 13f79535-47bb-0310-9956-ffa450edef68
2010-01-31 03:24:58 +00:00
Adrian Crum
b416829c08
Upgraded JUEL library to 2.2.1.
...
The UEL specification (JSR 245) has been updated. Object method invocations are now supported.
http://jcp.org/aboutJava/communityprocess/mrel/jsr245/index.html
The new JUEL library also supports method varargs, but keep in mind that it is a JUEL extension - not a part of JSR 245.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@904937 13f79535-47bb-0310-9956-ffa450edef68
2010-01-31 00:38:59 +00:00
Adrian Crum
734f6068c7
Some changes to the UEL integration. While attempting to upgrade the JUEL library, some flaws in my original code were exposed. This commit fixes them. Also, I added some more unit tests.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@904921 13f79535-47bb-0310-9956-ffa450edef68
2010-01-31 00:08:14 +00:00
Adrian Crum
2ca08fd687
FlexibleStringExpander.java improvements and new unit tests. The main purpose of the change is to reduce the memory footprint of non-cached instances (more than 78,000 at this time).
...
Two small functional changes:
1. Elminated the deprecated "env." syntax support.
2. Added support for runtime expression nesting.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@904592 13f79535-47bb-0310-9956-ffa450edef68
2010-01-29 19:03:43 +00:00
Adam Heath
00e090f9cb
MapStack now extends MapContext.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@904249 13f79535-47bb-0310-9956-ffa450edef68
2010-01-28 20:10:00 +00:00
Adam Heath
7873922c09
Add a map stack implementation that is not hard-coded to only take
...
string keys, and doesn't auto-add itself as 'context'.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@904248 13f79535-47bb-0310-9956-ffa450edef68
2010-01-28 20:09:34 +00:00
Adam Heath
002e61fb9e
Add a new getPropertyNumber variant that takes a url.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@904247 13f79535-47bb-0310-9956-ffa450edef68
2010-01-28 20:09:00 +00:00
Adam Heath
605c4e4087
Add a bunch more convertors.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@903804 13f79535-47bb-0310-9956-ffa450edef68
2010-01-27 19:54:00 +00:00
Adam Heath
83c49e9095
Fix handling of default values in getPropertyNumber.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@903766 13f79535-47bb-0310-9956-ffa450edef68
2010-01-27 17:55:13 +00:00
Jacques Le Roux
e03e7ad6f2
After Adam's remark about formatting (actually mostly about Double instead of double), Sascha provided a new patch which was still not well formatted. So I decided to use the same formatting than in getPropertyValue. Even if it does not follow the "brackets around blocks rule" Sun convention. I have explained this a bit to Sascha at https://issues.apache.org/jira/browse/OFBIZ-3425 "Extend getPropertyNumber, Default Value"
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@903571 13f79535-47bb-0310-9956-ffa450edef68
2010-01-27 08:59:25 +00:00
Jacques Le Roux
0eb5a20261
A patch from Sascha Rodekamp "Extend getPropertyNumber, Default Value" ( https://issues.apache.org/jira/browse/OFBIZ-3425 ) - OFBIZ-3425
...
Adds a method to have a default value to getPropertyNumber methods, can't hurt and maybe useful in some cases.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@903197 13f79535-47bb-0310-9956-ffa450edef68
2010-01-26 12:30:02 +00:00
Adrian Crum
2bef93bf64
ComparableRange test improvement.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@902525 13f79535-47bb-0310-9956-ffa450edef68
2010-01-24 03:18:52 +00:00
Adrian Crum
389e4e4431
Refactored DateRange.java:
...
1. Extends new class ComparableRange.
2. downcastTimestamp protected method renamed to timestampToDate and made static.
3. Misc code cleanups.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@902512 13f79535-47bb-0310-9956-ffa450edef68
2010-01-24 00:04:22 +00:00
Adrian Crum
883fd96835
Small JavaDoc fix.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@902510 13f79535-47bb-0310-9956-ffa450edef68
2010-01-24 00:01:08 +00:00
Adrian Crum
4051b7a1eb
Unit test for previous commit.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@902347 13f79535-47bb-0310-9956-ffa450edef68
2010-01-23 06:19:47 +00:00
Adrian Crum
a31caf2059
Sanity check on ComparableRange - make sure the constructor arguments are the same class.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@902345 13f79535-47bb-0310-9956-ffa450edef68
2010-01-23 06:00:53 +00:00
Adrian Crum
3e3daa73b2
Small fixup for last commit.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@902344 13f79535-47bb-0310-9956-ffa450edef68
2010-01-23 05:52:34 +00:00
Adrian Crum
5a80577ec9
Created a Range interface, and an implementation for all Comparable classes.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@902342 13f79535-47bb-0310-9956-ffa450edef68
2010-01-23 05:39:30 +00:00
Adrian Crum
a6bf032741
Small improvement to ClobToString converter.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@902341 13f79535-47bb-0310-9956-ffa450edef68
2010-01-23 05:38:09 +00:00
Scott Gray
aa3f01ade4
Removed deprecated method UtilXml.readXmlDocument(InputStream), concludes org.ofbiz.base deprecation cleanup
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@902230 13f79535-47bb-0310-9956-ffa450edef68
2010-01-22 19:11:38 +00:00
Scott Gray
ec93506d54
Removed deprecated class UtilParse.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@902229 13f79535-47bb-0310-9956-ffa450edef68
2010-01-22 19:11:32 +00:00
Scott Gray
8e276aba74
Removed deprecated method StringUtil.htmlSpecialChars(String, boolean, boolean, boolean), there was an undeprecated overloaded method (StringUtil.htmlSpecialChars(String)) calling this method so I've moved the implementation to it and marked it as deprecated.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@902228 13f79535-47bb-0310-9956-ffa450edef68
2010-01-22 19:11:27 +00:00
Scott Gray
21b953e7d8
Removed deprecated class OutputStreamByteCount.java
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@902227 13f79535-47bb-0310-9956-ffa450edef68
2010-01-22 19:11:22 +00:00
Scott Gray
812ec2585e
Added missing deprecated annotations.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@902225 13f79535-47bb-0310-9956-ffa450edef68
2010-01-22 19:10:20 +00:00
Anil Patel
722c4c33f0
Now checking for Boolean type in request attributes and adding it to returned Json attributes.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@901689 13f79535-47bb-0310-9956-ffa450edef68
2010-01-21 13:03:18 +00:00
Adrian Crum
e80cf29e02
Simplified the number converters. Eliminated an unnecessary abstract class, made use of Java's auto-boxing. Non-localized Number to String conversions use the the toString() method - so the result is what you would expect.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@901058 13f79535-47bb-0310-9956-ffa450edef68
2010-01-20 04:36:42 +00:00
Scott Gray
b8abee939f
Add converters to/from ByteBuffer and byte[]
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@899824 13f79535-47bb-0310-9956-ffa450edef68
2010-01-15 21:43:42 +00:00
Adam Heath
b17eb127ec
Fix trailing whitespace, and mixed tab/space at the beginning of lines.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@899812 13f79535-47bb-0310-9956-ffa450edef68
2010-01-15 21:00:23 +00:00
Adrian Crum
a91a37e6af
A less aggressive UtilProperties.java update, suggested by Adam Heath.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@898648 13f79535-47bb-0310-9956-ffa450edef68
2010-01-13 04:41:03 +00:00
Adrian Crum
1d47be2260
First pass at converting UtilProperties.java to Java 6, plus some small code cleanups.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@898338 13f79535-47bb-0310-9956-ffa450edef68
2010-01-12 14:24:36 +00:00
Adam Heath
eb0f0bfb16
Fix several generics warnings.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@898090 13f79535-47bb-0310-9956-ffa450edef68
2010-01-11 22:21:12 +00:00
Erwan de Ferrieres
8726524ab1
Creating a calendar event was starting at 12:00 even if selecting a start time before
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@896504 13f79535-47bb-0310-9956-ffa450edef68
2010-01-06 16:20:27 +00:00
Bilgin Ismet Ibryam
6b0a2fe97f
Use getLocalName() instead of getNodeName() and getTagName() methods. This change will fix errors in soap call, where elements have namespace prefixes.
...
I didn't notice any error caused from these changes, but it would be great if someone with more xml knowledge takes a loot at it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894359 13f79535-47bb-0310-9956-ffa450edef68
2009-12-29 11:33:39 +00:00
Adam Heath
93cc17b5b0
Remove a bunch of wildcard imports.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894106 13f79535-47bb-0310-9956-ffa450edef68
2009-12-27 19:54:58 +00:00
Adam Heath
17e8d26105
Fix some javadoc warnings.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894037 13f79535-47bb-0310-9956-ffa450edef68
2009-12-27 01:01:01 +00:00
Adam Heath
18d0ceeaf9
Remove most docs targets, they are all the same anyways.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894031 13f79535-47bb-0310-9956-ffa450edef68
2009-12-26 22:28:48 +00:00
Adam Heath
1c269fc012
Convert all javadoc calls to use fileset instead of sourcepath; this
...
allows excludes to be processed correctly.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894030 13f79535-47bb-0310-9956-ffa450edef68
2009-12-26 22:24:20 +00:00
Adam Heath
05b3ea3230
Make use of the init target, to set excludes based on available
...
libraries, so that the common classes target can be used. This also
sets src.exc.set correctly.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894028 13f79535-47bb-0310-9956-ffa450edef68
2009-12-26 22:20:32 +00:00
Adam Heath
a412eb1898
Normalize javadoc windowtitle.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894026 13f79535-47bb-0310-9956-ffa450edef68
2009-12-26 22:19:10 +00:00
Adam Heath
47b0a876ed
Switch all javac15 to javac16.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894022 13f79535-47bb-0310-9956-ffa450edef68
2009-12-26 22:12:04 +00:00
Adrian Crum
2b0d1e0c63
Improved converter tests.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@893635 13f79535-47bb-0310-9956-ffa450edef68
2009-12-23 21:39:55 +00:00
Adrian Crum
ca49d9bc66
First batch of converter tests.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@893313 13f79535-47bb-0310-9956-ffa450edef68
2009-12-22 20:54:55 +00:00
Adam Heath
dae44c3bd4
Some set helper methods.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@893077 13f79535-47bb-0310-9956-ffa450edef68
2009-12-22 06:08:43 +00:00
Adam Heath
ac8c6c51c0
Add trax support libraries, so that junitreport can work.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892694 13f79535-47bb-0310-9956-ffa450edef68
2009-12-21 05:31:11 +00:00
Adam Heath
c95c42b395
Upgrade ant to 1.7.1.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892693 13f79535-47bb-0310-9956-ffa450edef68
2009-12-21 05:30:14 +00:00
Adam Heath
ad3b379d34
Fix groovy class parsing/caching.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@891070 13f79535-47bb-0310-9956-ffa450edef68
2009-12-15 23:24:02 +00:00