It's short for "implementation". Generally it's used when the parent package contains abstract classes, interfaces, and perhaps some factory classes which are the main point of access, and then the impl package contains various concrete implementations of those abstract classes and interfaces.
发布评论
评论(2)
它代表实施。
这是 Java 约定。
通常在java(特别是J2EE)中,您将从某个工厂获取一个对象,然后使用它。
该对象的类型通常作为接口提供给您,因此您不需要知道实际的类,只需要知道它的方法。
impl 类通常是实现这些接口之一所描述的行为的类。
It stands for Implementation.
It's a Java convention.
Often in java (particularly J2EE) you will get an object from some factory, and then use it.
That object's type is often given to you as an interface, so that you don't need to know the actual class, just its methods.
An impl class is usually a class that implements the behaviour described by one of these interfaces.
它是“实施”的缩写。通常,当父包包含抽象类、接口,也许还包含一些作为主要访问点的工厂类,然后
impl
包包含这些抽象类和接口的各种具体实现时,就会使用它。It's short for "implementation". Generally it's used when the parent package contains abstract classes, interfaces, and perhaps some factory classes which are the main point of access, and then the
impl
package contains various concrete implementations of those abstract classes and interfaces.