The problem with this approach is that the LogManager instance uses the system class loader to instantiate classes from the configuration file.
这种方法的问题是LogManager实例使用了系统类的装载程序从配置文件中对类进行实例化。
An anonymous class is a kind of syntactic shorthand that lets you instantiate a class implementing an abstract class or interface where you need it, without having to explicitly give it a class name.
匿名类是一种语法速写标记,使您能够在需要实现某个抽象类或者接口的地方创建一个类的实例,而不需要显式提供类的名称。
This is a class that can be used repeatedly to instantiate a class as a singleton without having to re-write the singleton pattern code for that specific class.
这是一个可用来创建单例类实例确不需要为每个特定的类重写单例模式代码的可重用的类。
Instantiate a service class, which is the client-side representation of a Web service.
实例化一个service类,这个类在客户端代表了一个Web服务。
Also, client classes that instantiate our generic class must do so with classes that meet the declared constraint on what constructors exist.
同样,实例化泛型类的客户机类必须使用满足对构造函数存在所声明的约束的类来这样做。
From this domain validator class, you can instantiate and register your own unit and attribute validators.
从该域确认器类中,您可以实现并注册您自己的单元和属性确认器。
The type attribute of the element specifies the class to instantiate as the source document object.
元素的类型属性指定作为源文档对象要实例化的类。
You can simply instantiate it programmatically, but then your code will depend on a concrete implementation class.
可以简单地以编程方式对其进行实例化,但是这样的话,您的代码将依赖具体的实现类。
One needs only to instantiate the class and invoke a desired method, and all the encoding handling and the generation of SOAP messages is handled from the proxy class.
您只需实例化类并调用想要的方法,所有的编码处理和SOAP消息的生成都从代理类处理。
It is essential that the plug-in does not attempt to instantiate the plug-in class itself.
实质上插件并不能试图实例化插件类本身。
For this purpose, we will define a receiver class and modify our SessionManager class to instantiate the event receiver for us.
为此,我们将定义一个receiver类,并修改SessionManager类以初始化我们的事件接收器。
If all goes well, it is time to instantiate the class and run its main method.
如果一切正常,那么就可以实例化这个类并运行其main方法了。
Like all other controls in the toolbox, you can either let Visual Studio.net handle the plumbing or you can manually instantiate and initialize the class yourself.
像工具箱上的其它控件一样,你可以让Visual Studio . NET处理其生成或者你自己手动的实例和初始化这个类。
Then, when the application starts up, you simply need to instantiate an instance of the listening class.
此后,当应用程序启动时,只需实例化侦听类的一个实例。
The Factory Method Pattern is a creational pattern that defines an interface for creating an object but lets subclasses decide which actual class to instantiate.
Factory方法模式是一个创建的模式,它定义一个用来创建对象的接口,而让子类来决定实例化哪个类。
That is another reason why you used the ws extension in the Uml2SimpleRdb relation, so that you can instantiate the IFile class specifying the name of a file as a string.
这也是你在Uml2SimpleRdb关联中使用ws扩展的又一个原因,因为这样你在实例化IFile类的时候可以用一个字符串指明文件。
Instead, they are replaced with other properties which tell the ObjectDataSource control which business class to instantiate and which method to use to retrieve or modify the data.
相反,它们被替换为告诉ObjectDataSource控件实例化哪个业务类以及使用哪个方法来检索或修改数据的其他属性。
The element contains the user-defined class definition the RPCAdapter will instantiate to invoke the method.
元素包含用户定义的类定义,RPCAdapter将实例化此类定义以调用方法。
This is a fairly simple class that lets me maintain a list of todos in another object called a TodoCollection. I can instantiate my collection.
这是一个相当简单的类,它允许我在另一个名为TodoCollection的对象中维护todo列表。
To instantiate the object within the shared memory, define an additional class, Initializer.
要对共享内存中的对象进行实例化,请定义另外一个类Initializer。
The LTMemory class represents an area of memory where the time to instantiate an object is the combination of a fixed allocation time and a variable initialisation time.
LTMemory类表示这样的内存域,在这里实例化一个对象的时间等于固定的分配时间加上不定的初始化时间。
The first steps in creating a database-backed model are to instantiate the MySQL driver class, and create a DBConnection instance.
创建数据库后台模型的第一步是说明MySQL驱动类,并创建DBConnection实例。
You also override the constructor where you instantiate the server class and the SugarRestServiceXML: : serve method to instantiate the response class.
我们还重写了构造函数,其中实例化了服务器类和SugarRestServiceXML:serve方法,以实例化响应类。
This isn't a major issue unless you are using dates, as ruby's date class is very slow to instantiate.
这并不是一个主要的问题,除非你使用的类型是日期型,因为ruby的日期型的数据实例化起来非常慢。
The solution that JPA 2.0 provides is the ability to instantiate a metamodel class named Person_ that corresponds to Person by exposing the same persistent attributes statically.
JPA 2.0提供的解决办法通过静态地公开相同的持久化属性实例化名为 Person_的元模型类(对应于Person)。
To create a thread-local variable, you instantiate an object of class ThreadLocal.
要创建一个线程局部变量,请实例化类ThreadLocal的一个对象。
I first instantiate the DESEngine class, which implements the DES cryptographic algorithm.
我首先实例化了DESEngine类,这个类实现了DES加密算法。
Bundle-Activator declares the class to instantiate and invoke the start method when the bundle is started; similarly, the stop method is called when the bundle is stopped.
bundle - Activator声明了在bundle启动时要实例化并调用其start方法的类;类似的,在bundle停止时将调用该类的stop方法。
Next, we need to add some code to the main method to instantiate the class and run the SWT code.
接着,我们需要向main方法添加一些代码,以便实例化该类并且运行SWT代码。
One usage pattern which Jim has established for Rake is a class which you instantiate with the appropriate options to describe the set of Rake tasks needed to automate your build.
Jim为Rake创建的用法模式之一就是一个实例化的类,里面带着描述了需用于自动化构建的Rake任务集合的合适选项。
应用推荐