Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove managedbean #115

Merged
merged 2 commits into from
Oct 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 0 additions & 48 deletions api/src/main/java/jakarta/annotation/ManagedBean.java

This file was deleted.

61 changes: 0 additions & 61 deletions spec/src/main/asciidoc/spec.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1209,64 +1209,3 @@ public class CalculatorBean {
// ...
}
----

=== jakarta.annotation.ManagedBean

The _ManagedBean_ annotation is used to
declare a Jakarta Managed Bean as specified in the _Jakarta Managed Beans_
specification. Jakarta Managed Beans are container-managed objects that support
a small set of basic services such as resource injection, lifecycle
callbacks and interceptors. A Jakarta Managed Bean may optionally have a name, a
_String_ specified via the _value_ element.

[source,java]
----
package jakarta.annotation;

import static java.lang.annotation.ElementType.*;
import static java.lang.annotation.RetentionPolicy.*;

@Target(TYPE)
@Retention(RUNTIME)
public @interface ManagedBean {
boolean value() default "";
}
----

|===
|Element |Description |Default
|value |Name of the Jakarta Managed Bean |""
|===

Examples:

[source,java]
----
@ManagedBean("cart")
public class ShoppingCart {
// ...
}
----

== References
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see no point in removing the references section, I'd rather see it being updated


JSR 175: A Metadata Facility for the Java
Programming Language. http://jcp.org/en/jsr/detail?id=175

Jakarta EE Platform 9 (Jakarta EE).
https://jakarta.ee/specifications/platform/9/

Java 2 Platform, Standard Edition, v5.0
(J2SE). https://www.oracle.com/java/technologies/javase/j2se-v50.html

Jakarta Enterprise Beans, v4.0.
https://jakarta.ee/specifications/enterprise-beans/4.0

Jakarta Interceptors, 2.0.
https://jakarta.ee/specifications/interceptors/2.0/

Jakarta Managed Beans.
https://jakarta.ee/specifications/managedbeans/2.0/

RFC 2119.
http://www.faqs.org/rfcs/rfc2119.html