concept JSR in category java

This is an excerpt from Manning's book Java SE 11 Programmer I Certification Guide.
Java Standard Edition (Java SE) is a specification. According to Oracle, Java SE is a development platform to enable developers create secure, portable, high-performance applications for the widest range of computing platforms possible while boosting user productivity and dramatically reducing the cost of application ownership. Java SE is defined by the JSR (Java Specification Request).
A JSR is a formal and detailed documentation of new technology or features, or updates to be included in Java. JSRs have multiple stages like initiation, early draft review, public draft and maintenance.

This is an excerpt from Manning's book Portlets in Action.
The two versions of the Java Portlet Specification that currently exist are 1.0 (described by JSR 168) and 2.0 (described by JSR 286). The 2.0 specification addresses most of the frequently required features of portlets that were missing from the 1.0 specification, such as resource serving (discussed in chapter 12), inter-portlet communication (chapter 11), and portlet filters (chapter 13). Most portlet containers support both specifications, and the 2.0 specification is backward compatible with the 1.0 specification.
In the first half of this chapter, we’ll look at Spring Portlet MVC annotations and discuss dependency injection using Spring’s @Autowired annotation, JSR 330’s @Inject annotation, and JSR 250’s @Resource annotation. As we go through the implementation of the Book Catalog portlet, you’ll see how Spring Portlet MVC annotations reduce the direct dependency of portlet request handlers on the portlet API.
JSR 303 defines the Bean Validation API, which allows you to validate JavaBeans components in your application, irrespective of the application layer to which these components belong. In this section, we’ll look at how you can use Spring with JSR 303 to validate model attributes. These model attributes can be form-backing or command objects (which could be domain objects).
As you can see, the Spring Validation API constraints that apply to the Book domain object aren’t defined in the Book class but in the AddBookValidator class. If you use JSR 303, the constraints are specified on the domain object itself, using annotations, as shown next.
Listing 8.24. Using JSR 303 with the Book domain object
import org.hibernate.validator.constraints.NotEmpty; import javax.validation.constraints.Size; import chapter08.code.listing.catalog.constraints.Unique; ... public class Book { @NotEmpty @Size(max=100, min=10) private String name; @NotEmpty private String author; @Unique private Long isbnNumber; public Book(String name, String author, long isbnNumber) { this.name = name; this.author = author; this.isbnNumber = isbnNumber; } ... }