Commit Graph
19 Commits
Author SHA1 Message Date
Jacques Le Roux cbc51c2532 A patch from Marc Morin "Resolve java warnings exposed in Eclipse : framework - webslinger" (https://issues.apache.org/jira/browse/OFBIZ-3121) - OFBIZ-3121
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@833727 13f79535-47bb-0310-9956-ffa450edef68
2009-11-07 18:18:33 +00:00
Adrian Crum 9ee18d37c5 Updated client code to use the new Delegator factory method.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@823633 13f79535-47bb-0310-9956-ffa450edef68
2009-10-09 17:44:24 +00:00
Adrian Crum 7fa08f9079 Replaced GenericDelegator.getGenericDelegator(...) calls with new factory method.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@821649 13f79535-47bb-0310-9956-ffa450edef68
2009-10-05 01:53:50 +00:00
Adrian Crum a4d68934c9 Converted GenericDelegator concrete class references to Delegator interface references.
This commit requires ant clean. Also, external libraries that reference GenericDelegator will need to be updated.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@821643 13f79535-47bb-0310-9956-ffa450edef68
2009-10-05 00:08:27 +00:00
Adam Heath 123d02c2e5 Move this code to TransactionUtil.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@815914 13f79535-47bb-0310-9956-ffa450edef68
2009-09-16 18:06:54 +00:00
Adrian Crum 74ea95889c Reverted rev 802567.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@812692 13f79535-47bb-0310-9956-ffa450edef68
2009-09-08 20:56:14 +00:00
Adrian Crum 6786aa4dbc Refactored GenericDelegator:
1. Converted GenericDelegator to an interface. We already have DelegatorInterface, but it isn't being used anywhere. Removed DelegatorInterface.java.

2. Extracted the static, cached data from the GenericDelegator implementation and put it in its own class - DelegatorData. The GenericDelegator implementation holds a reference to the DelegatorData instance. This makes it possible to have per-thread instances of GenericDelegator.

3. Replaced the ThreadLocal variables with regular variables. ThreadLocal variables are no longer needed. Client code doesn't need to be concerned with pushing and popping the GenericDelegator state.

This commit paves the way for the forthcoming ExecutionContext.

User modifications will have to replace GenericDelegator.getGenericDelegator(...) with DelegatorFactory.getGenericDelegator(...). Also, replace the push code with the new setXxx methods, and remove the pop code. If modifications used DelegatorInterface, replace that with GenericDelegator.

Aside from those changes, this commit is backwards compatible.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@802567 13f79535-47bb-0310-9956-ffa450edef68
2009-08-09 18:04:26 +00:00
Scott Gray dec24b29f2 Sorry for the big commit, got a bit carried away.
Added override and deprecated annotations wherever they were missing
Removed the use of any deprecated classes/methods (except OutputFormat in UtilXml)
A few other random generics and misc. cleanups

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@791212 13f79535-47bb-0310-9956-ffa450edef68
2009-07-05 10:01:19 +00:00
Adam Heath dd51c0108b Add a simple initCause helper method.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@789400 13f79535-47bb-0310-9956-ffa450edef68
2009-06-29 18:13:19 +00:00
Adam Heath 42c173f991 Upgrade to newer upstream.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@777337 13f79535-47bb-0310-9956-ffa450edef68
2009-05-22 00:45:51 +00:00
Adam Heath 7e5f06cdcc Integrate new changes from webslinger upstream; dispatcher is now
created properly each time.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@777333 13f79535-47bb-0310-9956-ffa450edef68
2009-05-22 00:20:47 +00:00
Adam Heath 1a31984695 Several minor generics fixes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@771124 13f79535-47bb-0310-9956-ffa450edef68
2009-05-03 20:35:52 +00:00
Andrew Zeneski 6ada9f4f66 integration with new Authz API - JIRA OFBIZ-2381
(only added to ContextMapper)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@770077 13f79535-47bb-0310-9956-ffa450edef68
2009-04-30 05:53:08 +00:00
Adam Heath 77a45da3c7 Switch to the newly introduced GenericDispatcher.newInstance variant.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@765738 13f79535-47bb-0310-9956-ffa450edef68
2009-04-16 20:06:54 +00:00
David E. Jones 4a1705a315 Removed some more references to applications stuff from framework, including small cleanup of service engine to get rid of WebAppDispatcher and use new factory method in GenericDispatcher, and changed AvailableServices.groovy to get the real dispatcher list instead of a hard-coded one; also updated eclipse classpath file for new webslinger stuff
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@757671 13f79535-47bb-0310-9956-ffa450edef68
2009-03-24 06:27:03 +00:00
Adam Heath 76f0dbd7b6 Don't use ArrayUtil for helper(equals/hashCode).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@757113 13f79535-47bb-0310-9956-ffa450edef68
2009-03-22 00:41:16 +00:00
Adam Heath 50e4e82157 Fix purely empty whitespace lines, and remove trailing whitespace.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@757071 13f79535-47bb-0310-9956-ffa450edef68
2009-03-21 23:23:40 +00:00
Adam Heath 2e4dc28293 Upgrade webslinger(servlet spec 2.5).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@753126 13f79535-47bb-0310-9956-ffa450edef68
2009-03-13 05:37:48 +00:00
Adam Heath b844d6a60e New webslinger component. This is being added to framework, based
on the desire to make use of it in a support role.

It is *not* enabled yet, not part of the build, nor used at runtime
by the server.  That will come shortly.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@753081 13f79535-47bb-0310-9956-ffa450edef68
2009-03-13 01:12:11 +00:00