It is an anonymous subclass. (I guess that is the correct term)

If you look at the creation of the WKEOUtils.OptimisticLockAction creation earlier in this thread, it is the same thing. Each time we create an OptimisticLockAction, we create a different subclass of the abstract OL Action class with a new doPerform method. That after creation ,we can it.

Same technique used in ERXEOAccessUtilities.ChannelAction.

On Dec 3, 2009, at 2:21 PM, Ricardo J. Parada wrote:


On Dec 3, 2009, at 2:16 PM, Anjo Krank wrote:

return new ERXEC(os) {
   public boolean useAutoLock() {return false;}

   public boolean coalesceAutoLocks() {return false;}
};

Pardon my ignorance... Is this valid Java code, I mean creating and object followed by a { .. } block? What does that do?

:-)

Thanks,
Ricardo


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/kieran_lists%40mac.com

This email sent to [email protected]

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to