From 0428ccd6ba484b612576fbbbeac4b8cdcfcd5b2e Mon Sep 17 00:00:00 2001 From: Matej Novotny Date: Sat, 9 Dec 2023 21:23:04 +0100 Subject: [PATCH] Apply formatting rules to the codebase --- .../java/jakarta/decorator/Decorator.java | 12 +- .../main/java/jakarta/decorator/Delegate.java | 48 ++--- .../java/jakarta/decorator/package-info.java | 149 ++++++++------ .../enterprise/context/ApplicationScoped.java | 25 +-- .../enterprise/context/BeforeDestroyed.java | 13 +- .../context/BusyConversationException.java | 12 +- .../enterprise/context/ContextException.java | 4 +- .../context/ContextNotActiveException.java | 6 +- .../enterprise/context/Conversation.java | 32 +-- .../context/ConversationScoped.java | 30 ++- .../jakarta/enterprise/context/Dependent.java | 11 +- .../jakarta/enterprise/context/Destroyed.java | 1 + .../enterprise/context/Initialized.java | 11 +- .../NonexistentConversationException.java | 12 +- .../enterprise/context/NormalScope.java | 10 +- .../enterprise/context/RequestScoped.java | 12 +- .../enterprise/context/SessionScoped.java | 13 +- .../control/ActivateRequestContext.java | 13 +- .../control/RequestContextController.java | 51 ++--- .../enterprise/context/package-info.java | 179 +++++++++-------- .../context/spi/AlterableContext.java | 12 +- .../enterprise/context/spi/Context.java | 22 +-- .../enterprise/context/spi/Contextual.java | 10 +- .../context/spi/CreationalContext.java | 6 +- .../enterprise/context/spi/package-info.java | 31 +-- .../java/jakarta/enterprise/event/Event.java | 68 ++++--- .../event/ImmutableNotificationOptions.java | 4 +- .../enterprise/event/NotificationOptions.java | 16 +- .../enterprise/event/ObserverException.java | 4 +- .../jakarta/enterprise/event/Observes.java | 30 +-- .../enterprise/event/ObservesAsync.java | 30 +-- .../jakarta/enterprise/event/Reception.java | 8 +- .../enterprise/event/TransactionPhase.java | 13 +- .../enterprise/event/package-info.java | 173 +++++++++------- .../enterprise/inject/Alternative.java | 3 +- .../inject/AmbiguousResolutionException.java | 4 +- .../enterprise/inject/CreationException.java | 4 +- .../jakarta/enterprise/inject/Decorated.java | 14 +- .../jakarta/enterprise/inject/Disposes.java | 40 ++-- .../inject/IllegalProductException.java | 2 +- .../enterprise/inject/InjectionException.java | 4 +- .../jakarta/enterprise/inject/Instance.java | 86 ++++---- .../enterprise/inject/Intercepted.java | 14 +- .../java/jakarta/enterprise/inject/Model.java | 4 +- .../jakarta/enterprise/inject/Produces.java | 48 ++--- .../inject/ResolutionException.java | 4 +- .../enterprise/inject/Specializes.java | 36 ++-- .../jakarta/enterprise/inject/Stereotype.java | 39 ++-- .../enterprise/inject/TransientReference.java | 17 +- .../java/jakarta/enterprise/inject/Typed.java | 2 +- .../UnproxyableResolutionException.java | 4 +- .../UnsatisfiedResolutionException.java | 4 +- .../jakarta/enterprise/inject/Vetoed.java | 10 +- .../compatible/spi/AnnotationBuilder.java | 6 +- .../spi/AnnotationBuilderFactory.java | 4 +- .../inject/build/compatible/spi/BeanInfo.java | 3 +- .../build/compatible/spi/ClassConfig.java | 6 +- .../compatible/spi/DeclarationConfig.java | 6 +- .../build/compatible/spi/FieldConfig.java | 6 +- .../compatible/spi/InjectionPointInfo.java | 3 +- .../build/compatible/spi/InterceptorInfo.java | 4 +- .../build/compatible/spi/MetaAnnotations.java | 10 +- .../build/compatible/spi/MethodConfig.java | 6 +- .../build/compatible/spi/ObserverInfo.java | 7 +- .../build/compatible/spi/ParameterConfig.java | 6 +- .../build/compatible/spi/Parameters.java | 6 +- .../build/compatible/spi/ScannedClasses.java | 2 +- .../build/compatible/spi/SecurityActions.java | 3 +- .../spi/SkipIfPortableExtensionPresent.java | 4 +- .../build/compatible/spi/StereotypeInfo.java | 5 +- .../compatible/spi/SyntheticBeanBuilder.java | 4 +- .../compatible/spi/SyntheticComponents.java | 1 + .../spi/SyntheticObserverBuilder.java | 4 +- .../inject/build/compatible/spi/Types.java | 11 +- .../build/compatible/spi/package-info.java | 4 +- .../enterprise/inject/se/SeContainer.java | 12 +- .../inject/se/SeContainerInitializer.java | 64 +++--- .../inject/spi/AfterBeanDiscovery.java | 25 +-- .../inject/spi/AfterDeploymentValidation.java | 8 +- .../inject/spi/AfterTypeDiscovery.java | 24 ++- .../enterprise/inject/spi/Annotated.java | 21 +- .../inject/spi/AnnotatedCallable.java | 8 +- .../inject/spi/AnnotatedConstructor.java | 15 +- .../enterprise/inject/spi/AnnotatedField.java | 15 +- .../inject/spi/AnnotatedMember.java | 12 +- .../inject/spi/AnnotatedMethod.java | 15 +- .../inject/spi/AnnotatedParameter.java | 17 +- .../enterprise/inject/spi/AnnotatedType.java | 21 +- .../jakarta/enterprise/inject/spi/Bean.java | 9 +- .../enterprise/inject/spi/BeanAttributes.java | 14 +- .../enterprise/inject/spi/BeanContainer.java | 73 +++---- .../enterprise/inject/spi/BeanManager.java | 123 ++++++------ .../inject/spi/BeforeBeanDiscovery.java | 59 +++--- .../enterprise/inject/spi/BeforeShutdown.java | 6 +- .../jakarta/enterprise/inject/spi/CDI.java | 12 +- .../enterprise/inject/spi/CDIProvider.java | 7 +- .../enterprise/inject/spi/Decorator.java | 14 +- .../inject/spi/DefinitionException.java | 10 +- .../inject/spi/DeploymentException.java | 12 +- .../enterprise/inject/spi/EventContext.java | 8 +- .../enterprise/inject/spi/EventMetadata.java | 10 +- .../enterprise/inject/spi/Extension.java | 16 +- .../enterprise/inject/spi/InjectionPoint.java | 36 ++-- .../inject/spi/InjectionTarget.java | 22 ++- .../inject/spi/InjectionTargetFactory.java | 29 +-- .../inject/spi/InterceptionFactory.java | 8 +- .../inject/spi/InterceptionType.java | 6 +- .../enterprise/inject/spi/Interceptor.java | 12 +- .../enterprise/inject/spi/ObserverMethod.java | 39 ++-- .../inject/spi/PassivationCapable.java | 12 +- .../enterprise/inject/spi/Prioritized.java | 2 +- .../inject/spi/ProcessAnnotatedType.java | 19 +- .../enterprise/inject/spi/ProcessBean.java | 19 +- .../inject/spi/ProcessBeanAttributes.java | 28 ++- .../inject/spi/ProcessInjectionPoint.java | 16 +- .../inject/spi/ProcessInjectionTarget.java | 16 +- .../inject/spi/ProcessManagedBean.java | 8 +- .../inject/spi/ProcessObserverMethod.java | 28 +-- .../inject/spi/ProcessProducer.java | 22 ++- .../inject/spi/ProcessProducerField.java | 12 +- .../inject/spi/ProcessProducerMethod.java | 10 +- .../inject/spi/ProcessSessionBean.java | 16 +- .../spi/ProcessSyntheticAnnotatedType.java | 10 +- .../inject/spi/ProcessSyntheticBean.java | 8 +- .../spi/ProcessSyntheticObserverMethod.java | 11 +- .../enterprise/inject/spi/Producer.java | 20 +- .../inject/spi/ProducerFactory.java | 16 +- .../inject/spi/SecurityActions.java | 3 +- .../inject/spi/SessionBeanType.java | 6 +- .../enterprise/inject/spi/Unmanaged.java | 27 +-- .../inject/spi/WithAnnotations.java | 14 +- .../AnnotatedConstructorConfigurator.java | 26 +-- .../AnnotatedFieldConfigurator.java | 26 +-- .../AnnotatedMethodConfigurator.java | 24 +-- .../AnnotatedParameterConfigurator.java | 28 +-- .../AnnotatedTypeConfigurator.java | 32 +-- .../BeanAttributesConfigurator.java | 11 +- .../spi/configurator/BeanConfigurator.java | 4 +- .../InjectionPointConfigurator.java | 9 +- .../ObserverMethodConfigurator.java | 12 +- .../configurator/ProducerConfigurator.java | 11 +- .../enterprise/inject/spi/package-info.java | 187 ++++++++++-------- .../jakarta/enterprise/invoke/Invoker.java | 8 +- .../enterprise/invoke/InvokerBuilder.java | 19 +- .../enterprise/util/AnnotationLiteral.java | 14 +- .../jakarta/enterprise/util/Nonbinding.java | 3 +- .../enterprise/util/SecurityActions.java | 7 +- .../jakarta/enterprise/util/TypeLiteral.java | 14 +- .../jakarta/enterprise/util/package-info.java | 2 +- .../cdi/api/test/AnnotationLiteralTest.java | 12 +- .../java/org/jboss/cdi/api/test/CDITest.java | 21 +- .../cdi/api/test/ClosableCDIProvider.java | 8 +- .../jboss/cdi/api/test/DummyCDIProvider.java | 3 +- .../jboss/cdi/api/test/DummyCDIProvider2.java | 4 +- .../test/annotated/AbstractAnnotatedTest.java | 17 +- .../annotated/AnnotatedCallableHolder.java | 36 ++-- .../annotated/AnnotatedConstructorHolder.java | 6 +- .../annotated/AnnotatedConstructorTest.java | 20 +- .../test/annotated/AnnotatedFieldHolder.java | 6 +- .../test/annotated/AnnotatedFieldTest.java | 19 +- .../test/annotated/AnnotatedMemberHolder.java | 29 ++- .../test/annotated/AnnotatedMethodHolder.java | 8 +- .../test/annotated/AnnotatedMethodTest.java | 21 +- .../annotated/AnnotatedParameterHolder.java | 26 ++- .../annotated/AnnotatedParameterTest.java | 18 +- .../test/annotated/AnnotatedTypeHolder.java | 34 ++-- .../api/test/annotated/AnnotatedTypeTest.java | 14 +- .../cdi/api/test/annotated/RepeatBean.java | 1 + .../cdi/api/test/annotated/Repeater.java | 2 +- .../cdi/api/test/annotated/Repeaters.java | 2 +- .../parameter/AnnotatedParameterTest.java | 6 +- .../test/event/NotificationOptionsTest.java | 2 +- .../test/privileged/CDIPrivilegedTest.java | 1 - .../api/test/privileged/FakeCDIProvider.java | 4 +- .../annotation/AnnotationLiteralTest.java | 1 + .../privileged/annotation/MyAnnotation.java | 2 +- .../annotation/MyAnnotationLiteral.java | 1 - .../test/se/DummySeContainerInitializer.java | 9 +- .../test/se/DummySeContainerInitializer2.java | 8 +- .../test/se/SeContainerInitializerTest.java | 14 +- .../inject/spi/el/ELAwareBeanManager.java | 3 +- .../enterprise/lang/model/AnnotationInfo.java | 7 +- .../lang/model/AnnotationMember.java | 4 +- .../lang/model/AnnotationTarget.java | 9 +- .../lang/model/declarations/ClassInfo.java | 6 +- .../lang/model/declarations/MethodInfo.java | 5 +- .../lang/model/types/ParameterizedType.java | 3 +- .../enterprise/lang/model/types/Type.java | 3 +- 188 files changed, 1935 insertions(+), 1523 deletions(-) diff --git a/api/src/main/java/jakarta/decorator/Decorator.java b/api/src/main/java/jakarta/decorator/Decorator.java index 3b3578ac5..e7497f711 100644 --- a/api/src/main/java/jakarta/decorator/Decorator.java +++ b/api/src/main/java/jakarta/decorator/Decorator.java @@ -8,7 +8,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. @@ -29,19 +29,21 @@ *

* Specifies that a class is a decorator. May be applied to a managed bean class. *

- * + * *
- * @Decorator 
+ * @Decorator
  * class TimestampLogger implements Logger { ... }
  * 
- * + * *

* Decorators of a session bean must comply with the bean provider programming restrictions defined by the EJB specification. * Decorators of a stateful session bean must comply with the rules for instance passivation and conversational state defined by * the EJB specification. *

* - *

CDI Lite implementations are not required to provide support for decorators.

+ *

+ * CDI Lite implementations are not required to provide support for decorators. + *

* * @see Delegate @Delegate identifies the delegate injection point of a decorator. * diff --git a/api/src/main/java/jakarta/decorator/Delegate.java b/api/src/main/java/jakarta/decorator/Delegate.java index 23e331a77..4e7573897 100644 --- a/api/src/main/java/jakarta/decorator/Delegate.java +++ b/api/src/main/java/jakarta/decorator/Delegate.java @@ -8,7 +8,7 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. @@ -29,45 +29,45 @@ * Identifies the delegate injection point of a decorator. May be applied to a field, bean constructor parameter or initializer * method parameter of a decorator bean class. *

- * + * *
- * @Decorator 
- * class TimestampLogger implements Logger { 
- *    @Inject @Delegate @Any Logger logger; 
- *    ... 
+ * @Decorator
+ * class TimestampLogger implements Logger {
+ *    @Inject @Delegate @Any Logger logger;
+ *    ...
  * }
  * 
- * + * *
- * @Decorator 
- * class TimestampLogger implements Logger { 
+ * @Decorator
+ * class TimestampLogger implements Logger {
  *    private Logger logger;
- *    
+ *
  *    @Inject
- *    public TimestampLogger(@Delegate @Debug Logger logger) { 
- *       this.logger=logger; 
- *    } 
- *    ... 
+ *    public TimestampLogger(@Delegate @Debug Logger logger) {
+ *       this.logger=logger;
+ *    }
+ *    ...
  * }
  * 
- * + * *

* A decorator must have exactly one delegate injection point. The delegate injection point must be an injected field, * initializer method parameter or bean constructor method parameter. *

- * + * *

* The container injects a delegate object to the delegate injection point. The delegate object implements the delegate type and * delegates method invocations along the decorator stack. When the container calls a decorator during business method * interception, the decorator may invoke any method of the delegate object. If a decorator invokes the delegate object at any * other time, the invoked method throws an {@link java.lang.IllegalStateException}. *

- * + * *
- * @Decorator 
- * class TimestampLogger implements Logger { 
- *    @Inject @Delegate @Any Logger logger; 
- *    
+ * @Decorator
+ * class TimestampLogger implements Logger {
+ *    @Inject @Delegate @Any Logger logger;
+ *
  *    void log(String message) {
  *       logger.log( timestamp() + ": " + message );
  *    }
@@ -75,10 +75,12 @@
  * }
  * 
* - *

CDI Lite implementations are not required to provide support for decorators.

+ *

+ * CDI Lite implementations are not required to provide support for decorators. + *

* * @see Decorator @Decorator specifies that a class is a decorator. - * + * * @author Gavin King * @author Pete Muir */ diff --git a/api/src/main/java/jakarta/decorator/package-info.java b/api/src/main/java/jakarta/decorator/package-info.java index 4610ed955..14bf3a78a 100644 --- a/api/src/main/java/jakarta/decorator/package-info.java +++ b/api/src/main/java/jakarta/decorator/package-info.java @@ -8,89 +8,114 @@ * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** - *

Annotations relating to decorators.

- * - *

A decorator implements one or more bean types and - * intercepts business method invocations of - * {@linkplain jakarta.enterprise.inject beans} which - * implement those bean types. These bean types are called - * decorated types.

- * - *

A decorator is a managed bean annotated {@link - * jakarta.decorator.Decorator @Decorator}.

- * - *

Decorators are superficially similar to interceptors, - * but because they directly implement operations with business - * semantics, they are able to implement business logic and, - * conversely, unable to implement the cross-cutting concerns - * for which interceptors are optimized. Decorators are called - * after interceptors.

- * + *

+ * Annotations relating to decorators. + *

+ * + *

+ * A decorator implements one or more bean types and + * intercepts business method invocations of + * {@linkplain jakarta.enterprise.inject beans} which + * implement those bean types. These bean types are called + * decorated types. + *

+ * + *

+ * A decorator is a managed bean annotated {@link + * jakarta.decorator.Decorator @Decorator}. + *

+ * + *

+ * Decorators are superficially similar to interceptors, + * but because they directly implement operations with business + * semantics, they are able to implement business logic and, + * conversely, unable to implement the cross-cutting concerns + * for which interceptors are optimized. Decorators are called + * after interceptors. + *

+ * *

Decorated types

- * - *

The set of decorated types of a decorator includes all - * bean types of the managed bean that are Java interfaces, - * except for {@link java.io.Serializable}. The decorator bean - * class and its superclasses are not decorated types of the - * decorator. The decorator class may be abstract.

- * - *

A decorator intercepts every method:

+ * + *

+ * The set of decorated types of a decorator includes all + * bean types of the managed bean that are Java interfaces, + * except for {@link java.io.Serializable}. The decorator bean + * class and its superclasses are not decorated types of the + * decorator. The decorator class may be abstract. + *

+ * + *

+ * A decorator intercepts every method: + *

* - * - *

A decorator may be an abstract class, and is not required to - * implement every method of every decorated type.

- * + * + *

+ * A decorator may be an abstract class, and is not required to + * implement every method of every decorated type. + *

+ * *

Delegate injection points

- * - *

All decorators have a - * {@linkplain jakarta.decorator.Delegate delegate injection point}. - * A delegate injection point is an injection point of the bean - * class annotated {@link jakarta.decorator.Delegate @Delegate}.

- * - *

The type of the delegate injection point must implement or - * extend every decorated type. A decorator is not required to - * implement the type of the delegate injection point.

- * + * + *

+ * All decorators have a + * {@linkplain jakarta.decorator.Delegate delegate injection point}. + * A delegate injection point is an injection point of the bean + * class annotated {@link jakarta.decorator.Delegate @Delegate}. + *

+ * + *

+ * The type of the delegate injection point must implement or + * extend every decorated type. A decorator is not required to + * implement the type of the delegate injection point. + *

+ * *

Enabled decorators

- * - *

By default, a bean archive has no enabled decorators. A - * decorator must be explicitly enabled by listing its bean class + * + *

+ * By default, a bean archive has no enabled decorators. A + * decorator must be explicitly enabled by listing its bean class * under the <decorators> element of the * beans.xml file of the bean archive. The order of the - * decorator declarations determines the decorator ordering. - * Decorators which occur earlier in the list are called first.

- * - *

A decorator is bound to a bean if:

- * + * decorator declarations determines the decorator ordering. + * Decorators which occur earlier in the list are called first. + *

+ * + *

+ * A decorator is bound to a bean if: + *

+ * * - * - *

If a managed bean class is declared final, it may not have - * decorators. If a managed bean has a non-static, non-private, + * + *

+ * If a managed bean class is declared final, it may not have + * decorators. If a managed bean has a non-static, non-private, * final method, it may not have any decorator which implements - * that method.

- * - *

A decorator instance is a - * {@linkplain jakarta.enterprise.context.Dependent dependent object} - * of the object it decorates.

- * + * that method. + *

+ * + *

+ * A decorator instance is a + * {@linkplain jakarta.enterprise.context.Dependent dependent object} + * of the object it decorates. + *

+ * * @see jakarta.enterprise.inject - * + * * @see jakarta.decorator.Decorator * @see jakarta.decorator.Delegate - * + * */ package jakarta.decorator; - diff --git a/api/src/main/java/jakarta/enterprise/context/ApplicationScoped.java b/api/src/main/java/jakarta/enterprise/context/ApplicationScoped.java index a9ede12e3..e4e113de6 100644 --- a/api/src/main/java/jakarta/enterprise/context/ApplicationScoped.java +++ b/api/src/main/java/jakarta/enterprise/context/ApplicationScoped.java @@ -35,7 +35,8 @@ *

* While ApplicationScoped must be associated with the built-in application context required by the specification, * third-party extensions are - * allowed to also associate it with their own context. Behavior described below is only related to the built-in application context. + * allowed to also associate it with their own context. Behavior described below is only related to the built-in application + * context. *

* *

@@ -43,7 +44,8 @@ *

* * *

- * An event with qualifier @Initialized(ConversationScoped.class) is fired when the conversation context is initialized + * An event with qualifier @Initialized(ConversationScoped.class) is fired when the conversation context is + * initialized * and an event with qualifier @Destroyed(ConversationScoped.class) is fired when the conversation is destroyed. * The event payload is: *

* @@ -63,8 +67,10 @@ *
  • Any Servlet request has exactly one associated conversation.
  • *
  • The container provides a filter with the name "CDI Conversation Filter", which may be mapped in web.xml, * allowing the user alter when the conversation is associated with the servlet request. If this filter is not mapped in any - * web.xml in the application, the conversation associated with a Servlet request is determined at the beginning of the - * request before calling any service() method of any servlet in the web application, calling the doFilter() + * web.xml in the application, the conversation associated with a Servlet request is determined at the beginning of + * the + * request before calling any service() method of any servlet in the web application, calling the + * doFilter() * method of any servlet filter in the web application and before the container calls any ServletRequestListener or * AsyncListener in the web application.
  • * @@ -106,13 +112,15 @@ *
  • The long-running conversation context associated with a request that renders a JSF view is automatically propagated to * any faces request (JSF form submission) that originates from that rendered page.
  • *
  • The long-running conversation context associated with a request that results in a JSF redirect (a redirect resulting from - * a navigation rule or JSF NavigationHandler) is automatically propagated to the resulting non-faces request, and to any other + * a navigation rule or JSF NavigationHandler) is automatically propagated to the resulting non-faces request, and + * to any other * subsequent request to the same URL. This is accomplished via use of a request parameter named cid containing the * unique identifier of the conversation.
  • * * *

    - * When no conversation is propagated to a Servlet request, or if a request parameter named conversationPropagation has + * When no conversation is propagated to a Servlet request, or if a request parameter named conversationPropagation + * has * the value none the request is associated with a new transient conversation. * All long-running conversations are scoped to a particular HTTP servlet session and may not cross session boundaries. * In the following cases, a propagated long-running conversation cannot be restored and re-associated with the request: @@ -125,7 +133,9 @@ * Servlet request, in order to conserve resources. * * - *

    CDI Lite implementations are not required to provide support for conversations.

    + *

    + * CDI Lite implementations are not required to provide support for conversations. + *

    * * @see Conversation * @see NonexistentConversationException diff --git a/api/src/main/java/jakarta/enterprise/context/Dependent.java b/api/src/main/java/jakarta/enterprise/context/Dependent.java index 02583b17e..20c3c285a 100644 --- a/api/src/main/java/jakarta/enterprise/context/Dependent.java +++ b/api/src/main/java/jakarta/enterprise/context/Dependent.java @@ -26,14 +26,13 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; +import jakarta.enterprise.context.spi.Context; import jakarta.enterprise.context.spi.Contextual; import jakarta.enterprise.context.spi.CreationalContext; +import jakarta.enterprise.inject.Instance; import jakarta.enterprise.util.AnnotationLiteral; import jakarta.inject.Scope; -import jakarta.enterprise.context.spi.Context; -import jakarta.enterprise.inject.Instance; - /** *

    * Specifies that a bean belongs to the dependent pseudo-scope. @@ -73,13 +72,15 @@ *

    * *

    - * Many instances of beans with scope @Dependent belong to some other bean or Java EE component class instance and are + * Many instances of beans with scope @Dependent belong to some other bean or Java EE component class instance and + * are * called dependent objects. *

    * *