在此之后,我们还将简单讨论一下类的垃圾回收;如果你对此已非常熟悉,则可以跳过这部分内容。
Once we've covered that, we'll briefly touch on garbage collection of classes; so if are comfortable with that, you can skip ahead.
可以看到,默认情况下patient类仅仅扩展了ActiveRecord。
As you can see, by default the Patient class simply extends ActiveRecord.
这些规则与应用程序的Routingpolicy选项卡下的工作类关联。
These rules are those associated with work classes under the Routing policy tab of an application.
在这种情况下,继承这个类通常是行不通的,因为所添加的方法需要在基类的实例中可用。
Subclassing the class is typically not an option here, since the method needs to be available to instances of the base class itself.
但有时您可能希望在载入类之前对其加以修改,或者希望在不载入类的情况下研究数据结构。
However, sometimes you may want to modify classes before loading them, or you might want to just investigate data structures without loading the classes at all.
下面的例子演示了优化概要文件在3类情况下的使用,即常规优化、查询重写和计划优化。
The following examples are demonstrative of optimization profiles usage in 3 categories, namely, general optimization, query rewrite, and plan optimization.
要想在不将类载入JVM的情况下访问泛型信息,您需要一种读取存储在二进制类表示内的泛型信息的方法。
To access generics information without loading classes into the JVM, you need a way of reading the generics information stored inside the binary class representation.
尝试一下非小说类和技术类书籍:这些不仅能迅速教会你说话的新方式,还能教会你思考的新方式。
Try nonfiction and technical books: these will rapidly teach you not only new ways to talk, but new ways to think.
即使是同一门类下的乳酪,其生产原料所用的乳品也是五花八门,各不相同,味道亦是千差万别。不过,有了本文手把手式的指导,你就再也不会在乳酪世界里晕头转向了。
Within each category, individual cheeses made from different types of milk will taste wildly different, but you'll always know your way around cheese with this handy guide.
在被人视为过时的一类科研机构的帮助下,动物园打了一个漂亮的翻身仗。
A nice twist, then, that it is helped by a type of scientific institution that some thought obsolete.
我们来看一下这些新类是如何工作的。
默认情况下,类通常是可串行化的。
在某些情况下,类中的大多数方法需要携带注释(如版本4中所示)。
In certain situations most of the methods in a class need to carry an annotation (such as the one in Version 4).
在很多情况下,类的相互作用分析足以帮助发现问题,但是您偶尔可能需要进行更深入的对象级别的分析。
In most situations, class interaction analysis (available with the ARM agent) is enough to help find problems, but occasionally you will need to do further profiling at the object level.
他们转向如电视、电脑、互联网、录像带、光盘和音频设备一类的电子媒体,按下按钮就可自娱自乐。
They turn to electronic media such as television, computers, the Internet, videos, CDs and audio equipment, which can provide them with instant self-entertainment at the push of a button.
看一下route类生成的代码。
我们来通过一些代码示例按顺序看一下每个类。
Let's take a look at each class in turn with some code examples.
回想一下,vector类的方法几乎都是同步的。
Recall that the methods of the Vector class are nearly all synchronized.
在我结束对类型大小调整的讨论之前,我还希望提一下基类。
Before I conclude the discussion of the sizing of types, I also want to mention base classes.
默认情况下,顶级类将生成一个与类名相同名称的文件。
By default, a top-level class is generated into a file with the same name as itself.
现在,回顾一下Rational类定义中的第一行。
Now look again at the first line in the Rational class definition.
默认情况下,基类LoggingStopWatch将输出打印到System. err流中。
By default, the base LoggingStopWatch class prints output to the System.err stream.
有几种方法可以做到在不重新启动应用的情况下更新类,但每种方法都有其问题。
There are several ways to address the problem of updating changed classes within an application without restarting, but all come with different problems.
点一下这个类的名字,你将发现在这个对话框的右边会出现上下箭头。
Click the name of the class and you'll see that up and down arrows appear on the right side of the dialog box.
然而,在业务接口模式下,实现类还将需要实现新的业务接口(在这种情况下,是ILibrary接口)。
Under the business interface pattern, however, the implementation classes will also need to implement your new business interface (in this case, the ILibrary interface).
让我们检查一下测试类HumanTaskExampleTest和HumanTaskExample - Data目录中的数据文件。
Let's examine the test class HumanTaskExampleTest and the data files in the HumanTaskExample-Data directory.
在默认情况下,Morphia使用类名称来命名集合。
Morphia, by default, USES the class name to name the collection.
除了尚未实现某些程序库以外,这两种方式的主要差别在于静态模式下的类装载并不完全符合JVM行为。
Aside from some libraries that are not yet implemented, the major difference is that class loading in static mode will not exactly match the JVM behavior.
除了尚未实现某些程序库以外,这两种方式的主要差别在于静态模式下的类装载并不完全符合JVM行为。
Aside from some libraries that are not yet implemented, the major difference is that class loading in static mode will not exactly match the JVM behavior.
应用推荐