与J2EE应用程序很相似,清单定义了运行时类路径。
Much like J2EE applications, the manifest defines the run time classpath.
现在我们需要将库显式添加到Web项目构建和运行时类路径中。
We now need to explicitly add the libraries to the Web project build and runtime classpaths.
这些工具背后的思路是:可以将现有的类用作生成运行时类的模板。
The idea behind these tools is that you can use an existing class as the template for your run-time class generation.
这会让您很好地了解哪些JAR文件需要能够在构建路径和运行时类路径中找到。
This gives you a good idea of which JAR files need to be available on the build path and the run-time classpath.
plugin类是所有插件运行时类实现的抽象超类(请参见清单2)。
The Plugin class is the abstract superclass of all plug-in run time class implementations (see Listing 2).
此时起,您就能够编译这些文件且无需向默认的运行时类路径做任何添加了。
From here, you should be able to compile these files without any additions to the default runtime classpath.
Tapestry必须执行运行时类的修改来支持实例变量,并且只对私有变量。
Tapestry must perform runtime class modifications to support instance variables, and may only do so for private variables.
应用程序还可以定义它们自己的用于特殊用途(例如运行时类的重新装入)的类装入器。
Applications can also define their own class loaders for special purposes (such as run-time reloading of classes).
但是AccessValue1中的代码非常简单,这使它成为运行时类生成的理想目标。
But the code in AccessValue1 is very simple, making it an ideal target for run-time class generation.
有两种用AspectWerkz实现aspect处理的方法:编译时类修改和运行时类修改。
You've got two ways of implementing aspect handling using AspectWerkz: build-time class modification and run-time class modification.
序列图会显示出该用例具体的运行时类(runtime classes),以及包括SQL调用在内的所有做出的调用。
The sequence diagram shows the concrete runtime classes for that use case along with the calls made including any SQL calls.
注意,要运行示例应用程序,需要在运行时类路径中包含DB2UniversalJDBC驱动程序 (db2jcc.jar)。
Note that to run the sample application, you will need to include the DB2 Universal JDBC driver (db2jcc.jar) in your runtime classpath.
注意,为了运行我提供的示例应用程序,必须将db 2UniversalJDBC驱动程序(db2jcc . jar)包括在运行时类路径中。
Note that to run the sample application I provide, you will need to include the db2 Universal JDBC driver (db2jcc.jar) in your runtime classpath.
定义代码如清单3所示,而且,再说一遍,它也必须在运行时位于类路径中。
It is shown in Listing 3 and, once again, must be in the classpath at runtime.
理想情况下你的应用程序在生产环境中运行时可以只用那些类文件,而不是预编译每个库中的每个文件(假设运行时会用到所有文件)。
Then ideally you can ship just those classes, rather than precompiling every file in every library (assuming your run touches all files actually needed when the app runs in production.
如果重命名或删除一个指定包,则依赖项将被破坏,并且运行时将不解析类。
If the one specified bundle were renamed or removed, the dependency would be broken, and the classes would not resolve at runtime.
这种在运行时的类切换是面向对象编程的一个常见特性,称为多态性。
This switching of classes at run time is a common feature of object-oriented programming, known as polymorphism.
当多个JVM在同一台机器上运行时,这将减少存储类数据所需的物理内存量。
This reduces the amount of physical memory required to store class data when multiple JVMs run on the same machine.
它甚至使您能够读写字段,调用运行时选择的类的方法。
It even lets you read and write fields and call methods of a class selected at run time.
可以称其为打了一个擦边球,因为。NET 3.0和3.5实际上只是构建于2.0运行时上的类库。
Instead, it is able to side step it because.net 3.0 and 3.5 are really just libraries on top of the 2.0 runtime.
首先介绍延迟绑定调用方法,然后介绍一些可以在运行时改变类定义的可用技术。
I'll first look at invoking a method with delayed binding, and then I'll show techniques you can use to change the definition of a class at run time.
在这期实战groovy文章中,您将了解元编程—Groovy在运行时向类动态添加新方法的能力。
In this Practically Groovy installment, you'll learn about metaprogramming - Groovy's ability to add new methods to classes dynamically at run time.
当cell对象属于向其添加的行时,将在运行时修改Row类。
The Row class is altered at runtime when cell objects belonging to a row are added to it.
我更喜欢在类的内部说明类的运行时行为,将有关类的所有信息集中保存在一个地方。
I prefer specification of the runtime behavior of a class within the class itself, keeping all the information about a class in one place.
超类方法——在运行时不需要其他实例。
Superclass methods — no additional instance needed at run time.
它能用于访问类实例中的字段和方法,从而提供了不需要类之间的任何源代码链接就能在运行时将类动态地挂钩在一起的方法。
It can be used to access fields and methods in instances of a class, providing a way of dynamically hooking together classes at runtime without the need for any source code links between the classes.
可用它来访问类实例中的字段和方法,从而提供了一种在运行时将类动态地挂钩在一起,却无需类之间有任何源代码链接的方法。
It can be used to access fields and methods in instances of a class, giving a way of dynamically hooking together classes at runtime without the need for any source code links between the classes.
注意,这个文件必须在运行时位于类路径中。
Please note that this file must be in the classpath at runtime.
那么,该如何在JAX - RS运行时内配置这些类呢?
Now, how are these classes configured within a JAX-RS runtime?
那么,该如何在JAX - RS运行时内配置这些类呢?
Now, how are these classes configured within a JAX-RS runtime?
应用推荐