许多现有的类也得到了增强。
使用DM,你需要在你现有的类中引入一个module。
所有教程我看到显示从零开始,而不是使用现有的类。
All the tutorials I have seen show starting from scratch, and not using existing classes.
这些工具背后的思路是:可以将现有的类用作生成运行时类的模板。
The idea behind these tools is that you can use an existing class as the template for your run-time class generation.
我们将用一个例子来更好地展示静态横切是怎样在一个现有的类中实现的。
We'll use an example to better see how static crosscutting can be implemented in an existing class.
使用Browse按钮浏览现有的类,或在文本框中手工输入有效的类名。
Either use the browse button to browse to an existing class, or manually enter a valid class name in the text box.
最常见的有界通配符错误就是忘记使用它们,这就限制了类的使用,或是强制用户不得不重用现有的类。
The most common mistake with bounded wildcards is forgetting to use them at all, restricting the utility of a class or forcing users to jump through hoops to reuse an existing class.
这种方式让JiBX既能处理现有的类又能处理生成的类,还提供了运行时相对较小而且操作非常迅速的好处。
This approach allows JiBX to work with both existing classes and generated classes, and also gives the benefits of very fast operation with a relatively small runtime.
开发人员在创建这些对象时必须使用恰当的封装结构以避免重写现有的类(例如从WSDL生成对象时定制命名空间映射)。
Developers must use a proper packaging structure (such as custom namespace mapping while generating objects from WSDL) while creating these objects to avoid overwriting existing classes.
再对这些文件进行一些手工编辑,则可以避免生成用于该对象类的新代码,直接链接到Castor映射绑定所使用的现有的类。
With more manual editing of the files I could have avoided generating new code for the object classes, instead linking directly to the existing classes used by the Castor mapped binding.
为了ObjectDataSource向导能够对现有的类进行合适的筛选,在类列表中默认仅显示标记为DataObject的类。
To help filter the list of possible classes to bind to in the ObjectDataSource's wizard, by default only those classes marked as DataObjects are shown in the wizard's drop-down list.
我喜欢编写新的代码,但也喜欢采用一些现有的代码,以某种方法将其简化或将重复的代码提取到一个公共类中。
I'd rather write new code, but I enjoy taking some existing code and reducing complexity in a method or extracting duplicate code into a common class.
当JVM启动时,它寻找给定名称的类缓存(如果没有提供名称,那么选择一个默认名称),并按照需要连接现有的缓存或创建一个新的缓存。
When the JVM starts up, it looks for a class cache of the name given (if no name is provided, it chooses a default name) and it either connects to an existing cache or creates a new one, as required.
虽然在这方面还有一些限制,但是可以获取现有的数据库,并将它的大多数表或所有表作为UM l类导入。
There are still some limitations, as you'll see, but you can take an existing database and have most or all of its tables imported as UML classes.
继承允许您在新的类中重用和自定义现有的代码。
Inheritance allows you to reuse and customize existing code inside a new class.
在转化现有的库类来使用泛型方面没有多少技巧,但与平常的情况相同,向后兼容性不会凭空而来。
Converting existing library classes to work smoothly with generics was no small feat, but as is often the case, backward-compatibility does not come for free.
从多中小的文档到整个数据库类,php开发者需要的时候可以随意的选择重用现有的代码。
From various snippet archives to entire class databases, PHP developers are really spoilt for choice when it comes to reusing existing code.
除非你有一个类、组件、或者一段已经写好的代码,并且在现有的项目已经测试通过。不要认为这将是很容易的。
Unless you have a class, component, or piece of code already coded... and has been tested thoroughly... and is in production from an existing project, don't think it will be easy.
特别是,每个现有的形状类必须在子代类中添加功能,这使维护工作陷入了组合的复杂性和困难当中。
In particular, each existing shape class has to add capabilities in a descendent, which runs into combinatorial complexities and difficulties in maintenance.
您可以将现有的代码可视化为uml图,包括类图、序列图、主题图,和浏览图(参见图2)。
You can visualize existing code artifacts as UML diagrams, including class, sequence, topic, and browse diagrams (see Figure 2).
因此我们利用现有的观测技术——多普勒技术所做的研究正是找到类地行星的最初几步。
So what we're doing right now with our observational technique, the Doppler technique, is taking really the very first steps to finding Earth-like planets.
我们可能会有10年的黑暗期,其间必须明智地使用现有的抗生素,而且要面对一个现实:我们无法治疗这一类的感染。
We have a bleak window of maybe 10 years, where we are going to have to use the antibiotics we have very wisely, but also grapple with the reality that we have nothing to treat these infections with.
回想一下,使用XML配置IoCbean的最大优点是 IoC允许轻松将新类集成到现有的工作流程应用程序中。
Recall that the major advantage of using XML to configure IoC beans is that IoC allows easy integration of new classes into your existing workflow applications.
即使它们是,这也将不是针对表达式问题的真实解决方案,因为您不能将Fulfillment接口添加到现有的Order和contract类中。
Even if they were, this wouldn't be a real solution to the Expression Problem, because you can't add the Fulfillment interface to the existing Order and Contract classes.
有了mapper类以及映射文件,重点就变成了将对象映射到现有的数据结构,而不是使一个数据结构遵从这个对象的结构。
With the Mapper classes and mapping files, emphasis is put on mapping objects to existing data structures, rather than conforming a data structure to the object structure.
由于不能pickle类实例代码,因此可以添加、更改和除去方法,而不会影响现有的经过pickle的实例。
Because a class instance's code is not pickled, you can add, change, and remove methods without impacting existing pickled instances.
另外,如果在Tiger以后的版本中添加扩充的参数声明,那么我们必须确保这些扩充的声明将与现有的已编译泛型类兼容。
Also, if augmented parameter declarations were added in a future version beyond Tiger, we'd have to ensure that these augmented declarations would be compatible with existing compiled generic classes.
使用现有的Thread类、不做任何改动,就能创建一个非实时线程。
To create a new non real-time thread the existing thread class is used unchanged.
如果用一个现有的CodeSource装载类,那么就会重复使用它已经建立的ProtectionDomain。
If you load a class from an existing CodeSource then its already established ProtectionDomain will be reused.
相反,本文不需要这样做,而是探讨几种不同的技术,在后台将现有的Airport类无缝映射到新的、不同的表模式中。
Instead, you'll explore a couple of different techniques that will allow your existing Airport class to map seamlessly to the new, different table schema behind the scenes.
应用推荐