Thursday, 15 May 2014

Whats the Java EE package naming convention? -


I understand which features are related to the Java EE specification and which are standard Java features are a new application on which I I am working, and I have found that the package structure is a bit confused.

For example, take the package:

  import javax.enterprise.context.SessionScoped; Import javax.inject.Named;  

Both of these are enterprise features, however only it is explained by the existing in the enterprise package.

The specification in the Java EE API I have seen that certain attributes are kept within the enterprise package.

My guess is that some packages were before the EE version of Java, so they kept composition for backward compatibility? Even then..It all looks a bit weird. Some APIs in the JavaEE stack are not specific to jaw.

and also useful in Javanese. For example, CDI provides dependency injection, in your question is javax.inject.Named , it can also be used in Java's application.


No comments:

Post a Comment