diff --git a/jaxrs-spec/src/main/asciidoc/chapters/appendix/_change-log.adoc b/jaxrs-spec/src/main/asciidoc/chapters/appendix/_change-log.adoc index 75871f42c..716a214b3 100644 --- a/jaxrs-spec/src/main/asciidoc/chapters/appendix/_change-log.adoc +++ b/jaxrs-spec/src/main/asciidoc/chapters/appendix/_change-log.adoc @@ -1,6 +1,6 @@ //// ******************************************************************* -* Copyright (c) 2019 Eclipse Foundation +* Copyright (c) 2019, 2024 Eclipse Foundation * * This specification document is made available under the terms * of the Eclipse Foundation Specification License v1.0, which is @@ -12,6 +12,8 @@ [[change-log]] == Change Log +include::_changes-since-3.1-release.adoc[] + include::_changes-since-3.0-release.adoc[] include::_changes-since-2.1-release.adoc[] diff --git a/jaxrs-spec/src/main/asciidoc/chapters/appendix/_changes-since-3.1-release.adoc b/jaxrs-spec/src/main/asciidoc/chapters/appendix/_changes-since-3.1-release.adoc new file mode 100644 index 000000000..d0e644ede --- /dev/null +++ b/jaxrs-spec/src/main/asciidoc/chapters/appendix/_changes-since-3.1-release.adoc @@ -0,0 +1,15 @@ +//// +******************************************************************* +* Copyright (c) 2024 Eclipse Foundation +* +* This specification document is made available under the terms +* of the Eclipse Foundation Specification License v1.0, which is +* available at https://www.eclipse.org/legal/efsl.php. +******************************************************************* +//// + +[[changes-since-3.1-release]] +=== Changes Since 3.1 Release + +* <>: Removal of `@ManagedBean` +annotation support. Managed bean support is now part of CDI. \ No newline at end of file diff --git a/jaxrs-spec/src/main/asciidoc/chapters/environment/_javaee.adoc b/jaxrs-spec/src/main/asciidoc/chapters/environment/_javaee.adoc index 3c8992df7..cb7674614 100644 --- a/jaxrs-spec/src/main/asciidoc/chapters/environment/_javaee.adoc +++ b/jaxrs-spec/src/main/asciidoc/chapters/environment/_javaee.adoc @@ -1,6 +1,6 @@ //// ******************************************************************* -* Copyright (c) 2019, 2020 Eclipse Foundation +* Copyright (c) 2019, 2024 Eclipse Foundation * * This specification document is made available under the terms * of the Eclipse Foundation Specification License v1.0, which is @@ -37,43 +37,6 @@ Additionally, web application’s `` and servlet’s server-side features or injected into server-side JAX-RS components. See Javadoc for `Application.getProperties` for more information. -[[managed_beans]] -==== Managed Beans - -In a product that supports Managed Beans, implementations MUST support -the use of Managed Beans as root resource classes, providers and -`Application` subclasses. - -For example, a bean that uses a managed-bean interceptor can be defined -as a JAX-RS resource as follows: - -[source,java] ----- -@ManagedBean -@Path("/managedbean") -public class ManagedBeanResource { - - public static class MyInterceptor { - @AroundInvoke - public String around(InvocationContext ctx) throws Exception { - System.out.println("around() called"); - return (String) ctx.proceed(); - } - } - - @GET - @Produces("text/plain") - @Interceptors(MyInterceptor.class) - public String getIt() { - return "Hi managedbean!"; - } -} ----- - -The example above uses a managed-bean interceptor to intercept calls to -the resource method `getIt`. See <> for -additional requirements on Managed Beans. - [[cdi]] ==== Context and Dependency Injection (CDI) @@ -203,8 +166,7 @@ form `application/*+xml`. [[additional_reqs]] ==== Additional Requirements -The following additional requirements apply when using Managed Beans, -CDI-style Beans or EJBs as resource classes, providers or `Application` +The following additional requirements apply when using CDI-style Beans or EJBs as resource classes, providers or `Application` subclasses: * For JAX-RS resources and providers where the JAX-RS implementation