在一个静态初始化块中,在加载类时执行。
In a static initializer block, which executes when the class is loaded.
有关操作、引用以及基本属性的元数据在一个静态初始程序块中被初始化,如清单3所示。
Metadata about operations, references, and basic attributes are initialized in a static block initializer, as shown in Listing 3.
由于会反复调用该类,因此应将初始化 WebSphere TX API 的代码移动到一个静态块中
Since this class will be invoked repeatedly, move the code that initializes the WebSphere TX API into a static block
应用推荐