开发者

The abbreviation impl is used in a lot of libraries; What does it mean? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.

Want to improve this question? Update the question so it focuses on one problem only by editing this post.

Closed 5 years ago.

开发者_JAVA技巧 Improve this question

I've seen impl used as namespaces and as a class suffix in a number of different .net and Java libraries. I just want to know what it means and why it is used.


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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜