Java Context Class Explanation

I wanted to take the concept of the Execution Context class. I link to this post at http://tinyurl.com/ryjn5o . Can anyone enlighten by explaining more about how to create such a class?

+5
source share
1 answer

A "run-time context class" is simply the owner class created by the top level of your program, which contains all the things (for example, the Transaction object in the linked example) from the top level that you might need.

This is a packaged way to avoid global variables.

, , A, B, C, D, , A, B C, .

, - A, B C , . .

: : ExecutionContext javax.resource.spi.work(http://www.j2ee.me/j2ee/1.4/docs/api/javax/resource/spi/work/ExecutionContext.html), , - .

+2

All Articles