获得一个依赖的最简单方式就是直接调用构造函数创建对象。
The naive way to obtain a dependency is to create it directly by calling its constructor.
这样,通过声明这种类型的变量,可以直接把构造函数调用的结果分配给对应的变量。
Thus, by declaring the variables with this type, you can directly assign the result of a constructor call to the corresponding variable.
只要调用or g . apache .velocity .VelocityContext类的普通构造函数就可以创建直接可用的velocity上下文。
An immediately usable velocity context is created by simply calling the trivial constructor of the org.apache.velocity.VelocityContext class.
它们不能直接调用ButtonWithCallbacks的构造函数。
They can't invoke a ButtonWithCallbacks constructor directly.
无法直接调用静态构造函数。
此构造函数由派生类构造函数调用以初始化基类,不适合直接在代码中使用。
This constructor is called by derived-class constructors to initialize the base class and is not intended for use directly from your code.
此构造函数由派生类构造函数调用以初始化基类,不适合直接在代码中使用。
This constructor is called by derived-class constructors to initialize the base class and is not intended for use directly from your code.
应用推荐