The abbreviation impl is used in a lot of libraries; What does it mean? [closed]
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 questionI'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.
精彩评论