* The container fires the {@link BeforeBeanDiscovery} event which allows extensions to register scopes and stereotypes.
- * The container combines the registered scopes and stereotypes with scopes associated with the built-in contexts and built-in
- * stereotypes and makes the resulting set available through {@link TypeDiscoveryConfiguration#getKnownBeanDefiningAnnotations()}
+ * The container combines the registered scopes and stereotypes with scopes associated with the built-in contexts and
+ * built-in
+ * stereotypes and makes the resulting set available through
+ * {@link TypeDiscoveryConfiguration#getKnownBeanDefiningAnnotations()}
*
The set of annotations returned from {@link TypeDiscoveryConfiguration#getKnownBeanDefiningAnnotations()}
- *
Every Java annotation discovered by the integrator that is annotated with {@link NormalScope} or {@link Stereotype}
+ *
Every Java annotation discovered by the integrator that is annotated with {@link NormalScope} or
+ * {@link Stereotype}
*
*
- *
The resulting set is referred to as bean defining annotations hereafter.
+ *
+ * The resulting set is referred to as bean defining annotations hereafter.
+ *
*
*
* Next, the integrator processes available archives according to these rules. The rules are exclusive.
@@ -137,7 +142,8 @@ public interface CDI11Bootstrap extends Bootstrap {
*
*
* For each explicit bean archive the integrator creates an instance of {@link BeanDeploymentArchive} representing this
- * archive. The {@link BeanDeploymentArchive#getBeanClasses()} or {@link BeanDeploymentArchive#getLoadedBeanClasses()} method returns a collection of all types present within the
+ * archive. The {@link BeanDeploymentArchive#getBeanClasses()} or {@link BeanDeploymentArchive#getLoadedBeanClasses()}
+ * method returns a collection of all types present within the
* archive. Filtering rules defined in {@link BeansXml#getScanning()} are not required to be applied by the integrator and
* are applied later on by Weld. The {@link BeanDeploymentArchive#getEjbs()} method returns a collection of EJB descriptors
* for EJBs present in the archive.
@@ -145,7 +151,8 @@ public interface CDI11Bootstrap extends Bootstrap {
*
*
* For each implicit bean archive the integrator creates an instance of {@link BeanDeploymentArchive} representing this
- * archive. The {@link BeanDeploymentArchive#getBeanClasses()} or {@link BeanDeploymentArchive#getLoadedBeanClasses()} method of the bean archive returns all the types found in the
+ * archive. The {@link BeanDeploymentArchive#getBeanClasses()} or {@link BeanDeploymentArchive#getLoadedBeanClasses()}
+ * method of the bean archive returns all the types found in the
* archive which are annotated with a bean defining annotations or are Session bean definitions. Filtering rules (
* {@link BeansXml#getScanning()}) are not required to be applied by the integrator. The
* {@link BeanDeploymentArchive#getEjbs()} method returns a collection of EJB descriptors for Session beans present in the
@@ -176,7 +183,8 @@ public interface CDI11Bootstrap extends Bootstrap {
*
*
* In addition to {@link Bootstrap#startContainer(Environment, Deployment)}, this method allows an identifier (contextId) to
- * be assigned to the container. This identifier will be used to identify this application when invoking {@link Singleton} methods.
+ * be assigned to the container. This identifier will be used to identify this application when invoking {@link Singleton}
+ * methods.
*
* @param contextId the identifier of this application container instance
* @param environment the environment in use, by default {@link Environments#EE}
diff --git a/weld-spi/src/main/java/org/jboss/weld/bootstrap/api/Environment.java b/weld-spi/src/main/java/org/jboss/weld/bootstrap/api/Environment.java
index c061edcf..bea22882 100644
--- a/weld-spi/src/main/java/org/jboss/weld/bootstrap/api/Environment.java
+++ b/weld-spi/src/main/java/org/jboss/weld/bootstrap/api/Environment.java
@@ -37,7 +37,8 @@ public interface Environment {
Set> getRequiredBeanDeploymentArchiveServices();
/**
- * Environment aware of EE modules. In such environment each bean archive which belongs to a module should register {@link EEModuleDescriptor}
+ * Environment aware of EE modules. In such environment each bean archive which belongs to a module should register
+ * {@link EEModuleDescriptor}
*
* @return true by default
*/
diff --git a/weld-spi/src/main/java/org/jboss/weld/bootstrap/api/ServiceRegistry.java b/weld-spi/src/main/java/org/jboss/weld/bootstrap/api/ServiceRegistry.java
index a3f7d35f..b74c9662 100644
--- a/weld-spi/src/main/java/org/jboss/weld/bootstrap/api/ServiceRegistry.java
+++ b/weld-spi/src/main/java/org/jboss/weld/bootstrap/api/ServiceRegistry.java
@@ -47,7 +47,8 @@ public interface ServiceRegistry extends Iterable {
* @param the service type to add
* @param type the service type to add
* @param service the service implementation
- * @return null if no service implementation was previously associated with the given service. Otherwise, the previous service implementation is returned.
+ * @return null if no service implementation was previously associated with the given service. Otherwise, the previous
+ * service implementation is returned.
*/
S addIfAbsent(Class type, S service);
diff --git a/weld-spi/src/main/java/org/jboss/weld/bootstrap/api/Singleton.java b/weld-spi/src/main/java/org/jboss/weld/bootstrap/api/Singleton.java
index 7280542e..4973ff30 100644
--- a/weld-spi/src/main/java/org/jboss/weld/bootstrap/api/Singleton.java
+++ b/weld-spi/src/main/java/org/jboss/weld/bootstrap/api/Singleton.java
@@ -18,9 +18,11 @@
package org.jboss.weld.bootstrap.api;
/**
- * Holds a reference to an application singleton. This singleton is used internally by Weld to store various application scoped objects.
+ * Holds a reference to an application singleton. This singleton is used internally by Weld to store various application scoped
+ * objects.
*
- * This allows Weld to operate as a shared library. In a shared mode, the same instance of Weld implementation is used by all the applications in a server
+ * This allows Weld to operate as a shared library. In a shared mode, the same instance of Weld implementation is used by all
+ * the applications in a server
* environment. In the exclusive mode, each application loads a separate copy of Weld implementation at the application level.
*
* Alternative implementations of Singleton can be used as required
diff --git a/weld-spi/src/main/java/org/jboss/weld/bootstrap/api/helpers/IsolatedStaticSingletonProvider.java b/weld-spi/src/main/java/org/jboss/weld/bootstrap/api/helpers/IsolatedStaticSingletonProvider.java
index 59812e9e..a6af5c42 100644
--- a/weld-spi/src/main/java/org/jboss/weld/bootstrap/api/helpers/IsolatedStaticSingletonProvider.java
+++ b/weld-spi/src/main/java/org/jboss/weld/bootstrap/api/helpers/IsolatedStaticSingletonProvider.java
@@ -39,7 +39,8 @@ private static class IsolatedStaticSingleton implements Singleton {
public T get(String id) {
if (object == null) {
- throw new IllegalStateException("Singleton is not set. Is your Thread.currentThread().getContextClassLoader() set correctly?");
+ throw new IllegalStateException(
+ "Singleton is not set. Is your Thread.currentThread().getContextClassLoader() set correctly?");
}
return object;
}
diff --git a/weld-spi/src/main/java/org/jboss/weld/bootstrap/spi/BeanDeploymentArchive.java b/weld-spi/src/main/java/org/jboss/weld/bootstrap/spi/BeanDeploymentArchive.java
index f3a41d65..d1843c2b 100644
--- a/weld-spi/src/main/java/org/jboss/weld/bootstrap/spi/BeanDeploymentArchive.java
+++ b/weld-spi/src/main/java/org/jboss/weld/bootstrap/spi/BeanDeploymentArchive.java
@@ -61,7 +61,8 @@ public interface BeanDeploymentArchive {
*
*
*
- * For an implicit bean archive this method returns all the types found in the archive which are annotated with a bean defining annotation or are Session
+ * For an implicit bean archive this method returns all the types found in the archive which are annotated with a bean
+ * defining annotation or are Session
* bean definitions.
*
*
@@ -72,7 +73,8 @@ public interface BeanDeploymentArchive {
/**
* Get all pre-loaded classes for the bean deployment archive.
*
- * Weld checks if there is an overlap of FQCNs between the classes returned from this method and class names returned from {@link #getBeanClasses()}.
+ * Weld checks if there is an overlap of FQCNs between the classes returned from this method and class names returned from
+ * {@link #getBeanClasses()}.
* If two names overlap the class object returned from this method is used.
*
* @return the classes, empty if no pre-loaded classes are available
@@ -83,8 +85,10 @@ default Collection> getLoadedBeanClasses() {
}
/**
- * If possible, return all the classes found in the archive. For explicit bean archive the result of this method should be the same as for
- * {@link #getBeanClasses()}. For implicit bean archive this method should also return types which are neither annotated with bean defining annotations nor
+ * If possible, return all the classes found in the archive. For explicit bean archive the result of this method should be
+ * the same as for
+ * {@link #getBeanClasses()}. For implicit bean archive this method should also return types which are neither annotated
+ * with bean defining annotations nor
* are Session bean definitions.
*
* @return all classes found in the bean deployment archive, empty if no classes are present
diff --git a/weld-spi/src/main/java/org/jboss/weld/bootstrap/spi/BeansXml.java b/weld-spi/src/main/java/org/jboss/weld/bootstrap/spi/BeansXml.java
index 68649077..dd9aefd7 100644
--- a/weld-spi/src/main/java/org/jboss/weld/bootstrap/spi/BeansXml.java
+++ b/weld-spi/src/main/java/org/jboss/weld/bootstrap/spi/BeansXml.java
@@ -43,7 +43,7 @@ public String getVersion() {
return null;
}
- public boolean isTrimmed(){
+ public boolean isTrimmed() {
return false;
}
};
@@ -67,7 +67,8 @@ public boolean isTrimmed(){
* Note that since CDI 4.0, this method returns {@link BeanDiscoveryMode#ANNOTATED} if the file does not declare
* discovery mode attribute.
*
- * @return The value of the bean-discovery-mode attribute or {@link BeanDiscoveryMode#ANNOTATED} if the file does not
+ * @return The value of the bean-discovery-mode attribute or {@link BeanDiscoveryMode#ANNOTATED} if the file
+ * does not
* contain the bean-discovery-mode attribute.
*/
BeanDiscoveryMode getBeanDiscoveryMode();
diff --git a/weld-spi/src/main/java/org/jboss/weld/bootstrap/spi/ClassAvailableActivation.java b/weld-spi/src/main/java/org/jboss/weld/bootstrap/spi/ClassAvailableActivation.java
index 8297bafa..cdf863ec 100644
--- a/weld-spi/src/main/java/org/jboss/weld/bootstrap/spi/ClassAvailableActivation.java
+++ b/weld-spi/src/main/java/org/jboss/weld/bootstrap/spi/ClassAvailableActivation.java
@@ -14,6 +14,7 @@ public interface ClassAvailableActivation {
/**
* The name attribute
+ *
* @return the name attribute
*/
String getClassName();
diff --git a/weld-spi/src/main/java/org/jboss/weld/bootstrap/spi/Deployment.java b/weld-spi/src/main/java/org/jboss/weld/bootstrap/spi/Deployment.java
index 8a05b59d..7c1cc461 100644
--- a/weld-spi/src/main/java/org/jboss/weld/bootstrap/spi/Deployment.java
+++ b/weld-spi/src/main/java/org/jboss/weld/bootstrap/spi/Deployment.java
@@ -52,7 +52,8 @@
*
*
* The BeanDeploymentArchive tree represents the "logical structure" of the deployment; Given two archives A and B, which have a
- * transitive closure of accessible archives A' and B', it allowable for the the archives A & B to be represented as a single
+ * transitive closure of accessible archives A' and B', it allowable for the the archives A & B to be represented as a
+ * single
* BeanDeploymentArchive, assuming that A' and B' are bi-directionally accessible.
*
*
diff --git a/weld-spi/src/main/java/org/jboss/weld/bootstrap/spi/EEModuleDescriptor.java b/weld-spi/src/main/java/org/jboss/weld/bootstrap/spi/EEModuleDescriptor.java
index 4d616693..e99cd1ce 100644
--- a/weld-spi/src/main/java/org/jboss/weld/bootstrap/spi/EEModuleDescriptor.java
+++ b/weld-spi/src/main/java/org/jboss/weld/bootstrap/spi/EEModuleDescriptor.java
@@ -20,8 +20,10 @@
import org.jboss.weld.bootstrap.spi.helpers.EEModuleDescriptorImpl;
/**
- * In Java EE environment, each {@link BeanDeploymentArchive} should provide a description of the Java EE module it belongs to (WAR, RAR, etc.). This applies to
- * physical bean archives deployed within the given module and also to logical bean archives that belong to the module. Bean archives that are not part of a
+ * In Java EE environment, each {@link BeanDeploymentArchive} should provide a description of the Java EE module it belongs to
+ * (WAR, RAR, etc.). This applies to
+ * physical bean archives deployed within the given module and also to logical bean archives that belong to the module. Bean
+ * archives that are not part of a
* Java EE module (e.g. built-in server libraries) are not required to have a {@link EEModuleDescriptor} service registered.
*
*
@@ -29,8 +31,10 @@
*
*
*
- * It is recommended to share an immutable {@link EEModuleDescriptor} instance for all bean deployment archives of the same Java EE module. However, each bean
- * deployment archive may register its own {@link EEModuleDescriptor} instance. In this case, all descriptors representing a given EE module must use the same
+ * It is recommended to share an immutable {@link EEModuleDescriptor} instance for all bean deployment archives of the same Java
+ * EE module. However, each bean
+ * deployment archive may register its own {@link EEModuleDescriptor} instance. In this case, all descriptors representing a
+ * given EE module must use the same
* id and type.
*
- * {@link Filter} is a data structures representing the <exclude> elements beans.xml (Since CDI 1.1). See the XSD for
- * details of the semantics of <exclude>.
- *
+ * {@link Filter} is a data structures representing the <exclude> elements beans.xml (Since CDI 1.1). See the XSD for
+ * details of the semantics of <exclude>.
+ *
+ *
+ * @see Beans 1.1
+ *
+ * @author Pete Muir
+ * @see Scanning
+ */
+public interface Filter {
+
+ /**
+ * The name attribute
+ *
+ * @return the name attribute
+ */
+ String getName();
+
+ /**
+ * Nested <if-system-property> elements
+ *
+ * @return nested <if-system-property> elements
+ */
+ Collection> getSystemPropertyActivations();
+
+ /**
+ * Nested <if-class-available> elements
+ *
+ * @return nested <if-class-available> elements
+ */
+ Collection> getClassAvailableActivations();
+
}
\ No newline at end of file
diff --git a/weld-spi/src/main/java/org/jboss/weld/bootstrap/spi/Metadata.java b/weld-spi/src/main/java/org/jboss/weld/bootstrap/spi/Metadata.java
index a699e636..04e7a88c 100644
--- a/weld-spi/src/main/java/org/jboss/weld/bootstrap/spi/Metadata.java
+++ b/weld-spi/src/main/java/org/jboss/weld/bootstrap/spi/Metadata.java
@@ -11,12 +11,14 @@ public interface Metadata {
/**
* The metadata value
+ *
* @return the metadata value
*/
T getValue();
/**
* The location of the metadata, used in error and log messages
+ *
* @return location of the metadata, used in error and log messages
*/
String getLocation();
diff --git a/weld-spi/src/main/java/org/jboss/weld/bootstrap/spi/Scanning.java b/weld-spi/src/main/java/org/jboss/weld/bootstrap/spi/Scanning.java
index 94b6c5e1..d6fbd1cb 100644
--- a/weld-spi/src/main/java/org/jboss/weld/bootstrap/spi/Scanning.java
+++ b/weld-spi/src/main/java/org/jboss/weld/bootstrap/spi/Scanning.java
@@ -1,44 +1,44 @@
-package org.jboss.weld.bootstrap.spi;
-
-import static java.util.Collections.emptyList;
-
-import java.util.Collection;
-
-/**
- *
- * Scanning is a data structures representing the <scan> element in Weld's extensions to beans.xml. See the XSD for Weld's
- * extensions to beans.xml for details of the semantics of <scan>. {@link Scanning} contains an include {@link Filter}
- * list and an exclude {@link Filter} list.
- *
- *
- * @author Pete Muir
- *
- */
-public interface Scanning {
-
- Scanning EMPTY_SCANNING = new Scanning() {
-
- public Collection> getIncludes() {
- return emptyList();
- }
-
- public Collection> getExcludes() {
- return emptyList();
- }
- };
-
- /**
- * The <include> element
- *
- * @return the include element
- */
- Collection> getIncludes();
-
- /**
- * The <exclude> element
- *
- * @return the exclude element
- */
- Collection> getExcludes();
-
+package org.jboss.weld.bootstrap.spi;
+
+import static java.util.Collections.emptyList;
+
+import java.util.Collection;
+
+/**
+ *
+ * Scanning is a data structures representing the <scan> element in Weld's extensions to beans.xml. See the XSD for Weld's
+ * extensions to beans.xml for details of the semantics of <scan>. {@link Scanning} contains an include {@link Filter}
+ * list and an exclude {@link Filter} list.
+ *
+ *
+ * @author Pete Muir
+ *
+ */
+public interface Scanning {
+
+ Scanning EMPTY_SCANNING = new Scanning() {
+
+ public Collection> getIncludes() {
+ return emptyList();
+ }
+
+ public Collection> getExcludes() {
+ return emptyList();
+ }
+ };
+
+ /**
+ * The <include> element
+ *
+ * @return the include element
+ */
+ Collection> getIncludes();
+
+ /**
+ * The <exclude> element
+ *
+ * @return the exclude element
+ */
+ Collection> getExcludes();
+
}
\ No newline at end of file
diff --git a/weld-spi/src/main/java/org/jboss/weld/bootstrap/spi/SystemPropertyActivation.java b/weld-spi/src/main/java/org/jboss/weld/bootstrap/spi/SystemPropertyActivation.java
index 1f0a8fe3..d7c70355 100644
--- a/weld-spi/src/main/java/org/jboss/weld/bootstrap/spi/SystemPropertyActivation.java
+++ b/weld-spi/src/main/java/org/jboss/weld/bootstrap/spi/SystemPropertyActivation.java
@@ -14,12 +14,14 @@ public interface SystemPropertyActivation {
/**
* The name attribute
+ *
* @return the name attribute
*/
String getName();
/**
* The value attribute
+ *
* @return the name attribute
*/
String getValue();
diff --git a/weld-spi/src/main/java/org/jboss/weld/bootstrap/spi/WeldFilter.java b/weld-spi/src/main/java/org/jboss/weld/bootstrap/spi/WeldFilter.java
index e2080207..ae9815d0 100644
--- a/weld-spi/src/main/java/org/jboss/weld/bootstrap/spi/WeldFilter.java
+++ b/weld-spi/src/main/java/org/jboss/weld/bootstrap/spi/WeldFilter.java
@@ -32,6 +32,7 @@ public interface WeldFilter extends Filter {
/**
* The pattern attribute
+ *
* @return the pattern attribute
*/
String getPattern();
diff --git a/weld-spi/src/main/java/org/jboss/weld/configuration/spi/ExternalConfiguration.java b/weld-spi/src/main/java/org/jboss/weld/configuration/spi/ExternalConfiguration.java
index f3338a44..8693d0bd 100644
--- a/weld-spi/src/main/java/org/jboss/weld/configuration/spi/ExternalConfiguration.java
+++ b/weld-spi/src/main/java/org/jboss/weld/configuration/spi/ExternalConfiguration.java
@@ -21,8 +21,10 @@
import org.jboss.weld.bootstrap.api.Service;
/**
- * An integrator may provide a map of configuration properties. This map is considered the source with the lowest priority (i.e. it may be overriden by other
- * sources such as system properties). The supported keys are declared in the documentation. Entries with unsupported keys are ignored. Invalid property value
+ * An integrator may provide a map of configuration properties. This map is considered the source with the lowest priority (i.e.
+ * it may be overriden by other
+ * sources such as system properties). The supported keys are declared in the documentation. Entries with unsupported keys are
+ * ignored. Invalid property value
* is a deployment problem - initialization will be aborted by the container.
*
* @see WELD-1791
diff --git a/weld-spi/src/main/java/org/jboss/weld/construction/api/AroundConstructCallback.java b/weld-spi/src/main/java/org/jboss/weld/construction/api/AroundConstructCallback.java
index 34fc8de0..bbf7ff72 100644
--- a/weld-spi/src/main/java/org/jboss/weld/construction/api/AroundConstructCallback.java
+++ b/weld-spi/src/main/java/org/jboss/weld/construction/api/AroundConstructCallback.java
@@ -23,8 +23,10 @@
/**
* An implementation of this interface may be registered with a {@link WeldCreationalContext}. Weld will then call the
- * {@link #aroundConstruct(ConstructionHandle, AnnotatedConstructor, Object[], Map)} method of the implementation during component creation, allowing an
- * integrator to perform additional steps (e.g. invoking interceptors bound using the deployment descriptor) around component construction.
+ * {@link #aroundConstruct(ConstructionHandle, AnnotatedConstructor, Object[], Map)} method of the implementation during
+ * component creation, allowing an
+ * integrator to perform additional steps (e.g. invoking interceptors bound using the deployment descriptor) around component
+ * construction.
*
* @author Jozef Hartinger
*
@@ -35,19 +37,25 @@
public interface AroundConstructCallback {
/**
- * The method is called during component creation, allowing an integrator to perform additional steps (e.g. invoking interceptors bound using the deployment
+ * The method is called during component creation, allowing an integrator to perform additional steps (e.g. invoking
+ * interceptors bound using the deployment
* descriptor) around component construction.
*
* @param handle the handle for controlling the component creation process and retrieving the created instance
* @param constructor a representation of the component constructor used for component creation
- * @param parameters the parameters that will be passed to the component constructor. These parameters should be made available to {@link jakarta.interceptor.AroundConstruct}
- * interceptors through the {@link InvocationContext#getParameters()} method. An implementation is free to modify the parameters or provide a
+ * @param parameters the parameters that will be passed to the component constructor. These parameters should be made
+ * available to {@link jakarta.interceptor.AroundConstruct}
+ * interceptors through the {@link InvocationContext#getParameters()} method. An implementation is free to modify the
+ * parameters or provide a
* different parameter array to the {@link ConstructionHandle}.
- * @param data the context data associated with this {@link jakarta.interceptor.AroundConstruct} interception. The data should be made available to {@link jakarta.interceptor.AroundConstruct}
- * interceptors through {@link InvocationContext#getContextData()}. An implementation is free to modify the map or to provide a different one to the
+ * @param data the context data associated with this {@link jakarta.interceptor.AroundConstruct} interception. The data
+ * should be made available to {@link jakarta.interceptor.AroundConstruct}
+ * interceptors through {@link InvocationContext#getContextData()}. An implementation is free to modify the map or to
+ * provide a different one to the
* {@link ConstructionHandle}.
* @return the created instance
* @throws Exception any underlying exception is propagated directly
*/
- T aroundConstruct(ConstructionHandle handle, AnnotatedConstructor constructor, Object[] parameters, Map data) throws Exception;
+ T aroundConstruct(ConstructionHandle handle, AnnotatedConstructor constructor, Object[] parameters,
+ Map data) throws Exception;
}
diff --git a/weld-spi/src/main/java/org/jboss/weld/construction/api/ConstructionHandle.java b/weld-spi/src/main/java/org/jboss/weld/construction/api/ConstructionHandle.java
index 35a11f6b..5db91bc7 100644
--- a/weld-spi/src/main/java/org/jboss/weld/construction/api/ConstructionHandle.java
+++ b/weld-spi/src/main/java/org/jboss/weld/construction/api/ConstructionHandle.java
@@ -30,7 +30,8 @@
public interface ConstructionHandle {
/**
- * Proceed to the next {@link AroundConstructCallback}. If there is no next callback, the component is constructed and the component instance is returned
+ * Proceed to the next {@link AroundConstructCallback}. If there is no next callback, the component is constructed and the
+ * component instance is returned
* from the method.
*
* @param parameters the parameters to be passed to the component constructor
diff --git a/weld-spi/src/main/java/org/jboss/weld/construction/api/WeldCreationalContext.java b/weld-spi/src/main/java/org/jboss/weld/construction/api/WeldCreationalContext.java
index 49fb8f2c..8bce7a53 100644
--- a/weld-spi/src/main/java/org/jboss/weld/construction/api/WeldCreationalContext.java
+++ b/weld-spi/src/main/java/org/jboss/weld/construction/api/WeldCreationalContext.java
@@ -21,7 +21,8 @@
import jakarta.interceptor.Interceptors;
/**
- * Extended version of {@link CreationalContext} which gives the integrator additional control over the process of constructing an instance.
+ * Extended version of {@link CreationalContext} which gives the integrator additional control over the process of constructing
+ * an instance.
*
* @author Jozef Hartinger
*
@@ -29,9 +30,12 @@
public interface WeldCreationalContext extends CreationalContext {
/**
- * By default Weld takes care of {@link AroundConstruct} interceptors of a component instance which are bound to the component using interceptor bindings or
- * the {@link Interceptors} annotation. This may not be desired should an integrator want to manage these interceptors themselves. In that case this switch
- * may be used to suppress Weld management of {@link AroundConstruct} interceptors. In that case an integrator is responsible for performing
+ * By default Weld takes care of {@link AroundConstruct} interceptors of a component instance which are bound to the
+ * component using interceptor bindings or
+ * the {@link Interceptors} annotation. This may not be desired should an integrator want to manage these interceptors
+ * themselves. In that case this switch
+ * may be used to suppress Weld management of {@link AroundConstruct} interceptors. In that case an integrator is
+ * responsible for performing
* {@link AroundConstruct} interception.
*
* @see #registerAroundConstructCallback(AroundConstructCallback)
@@ -50,8 +54,10 @@ public interface WeldCreationalContext extends CreationalContext {
boolean isConstructorInterceptionSuppressed();
/**
- * Register a callback which is notified of component construction. This callback allows an integrator to perform additional tasks (e.g. invoking
- * interceptors bound using the deployment descriptor) around constructor invocation. {@link AroundConstructCallback}s are invoked in the order in which
+ * Register a callback which is notified of component construction. This callback allows an integrator to perform additional
+ * tasks (e.g. invoking
+ * interceptors bound using the deployment descriptor) around constructor invocation. {@link AroundConstructCallback}s are
+ * invoked in the order in which
* they were registered.
*
* @param callback the callback
diff --git a/weld-spi/src/main/java/org/jboss/weld/ejb/spi/InterceptorBindings.java b/weld-spi/src/main/java/org/jboss/weld/ejb/spi/InterceptorBindings.java
index ec651659..a1dc2026 100644
--- a/weld-spi/src/main/java/org/jboss/weld/ejb/spi/InterceptorBindings.java
+++ b/weld-spi/src/main/java/org/jboss/weld/ejb/spi/InterceptorBindings.java
@@ -36,7 +36,8 @@ public interface InterceptorBindings {
* This includes class and method-bound interceptors.The purpose of this method is to indicate what interceptors does the
* container need to interact with, for a given EJB.
*
- * Note: in the case of an EJB, the expectation is that the interpretation of {link @jakarta.interceptor.Interceptors} is left
+ * Note: in the case of an EJB, the expectation is that the interpretation of {link @jakarta.interceptor.Interceptors} is
+ * left
* to the container, and the interceptors provided by the binding are complementary
*
* @return all interceptors that are bound to an EJB object through the {@link InterceptorBinding} mechanism and are enabled
@@ -53,7 +54,7 @@ public interface InterceptorBindings {
* @param method - the method that is to be intercepted
* @return - an immutable list of interceptors applicable to the method (empty if no such interceptors exist)
* @throws IllegalArgumentException if interceptionType is not {@link InterceptionType#AROUND_INVOKE} or
- * {@link InterceptionType#AROUND_TIMEOUT}
+ * {@link InterceptionType#AROUND_TIMEOUT}
*/
List> getMethodInterceptors(InterceptionType interceptionType, Method method);
@@ -66,7 +67,7 @@ public interface InterceptorBindings {
* @param interceptionType - the interception type (lifecycle)
* @return - an immutable list of interceptors applicable to the method (empty if no such interceptors exist)
* @throws IllegalArgumentException if interceptionType not {@link InterceptionType#AROUND_INVOKE} or
- * {@link InterceptionType#AROUND_TIMEOUT}
+ * {@link InterceptionType#AROUND_TIMEOUT}
*/
List> getLifecycleInterceptors(InterceptionType interceptionType);
diff --git a/weld-spi/src/main/java/org/jboss/weld/injection/spi/JpaInjectionServices.java b/weld-spi/src/main/java/org/jboss/weld/injection/spi/JpaInjectionServices.java
index 558bde6e..5330bcac 100644
--- a/weld-spi/src/main/java/org/jboss/weld/injection/spi/JpaInjectionServices.java
+++ b/weld-spi/src/main/java/org/jboss/weld/injection/spi/JpaInjectionServices.java
@@ -43,7 +43,7 @@ public interface JpaInjectionServices extends Service {
* @param injectionPoint the injection point metadata
* @return factory for obtaining {@link EntityManager} instances
* @throws IllegalArgumentException if the injection point is not annotated with {@link PersistenceContext},
- * if the injection point is a method that doesn't follow JavaBean conventions or if the injection
+ * if the injection point is a method that doesn't follow JavaBean conventions or if the injection
* @throws IllegalStateException if no suitable persistence units can be resolved
*/
ResourceReferenceFactory registerPersistenceContextInjectionPoint(InjectionPoint injectionPoint);
@@ -56,7 +56,7 @@ public interface JpaInjectionServices extends Service {
* @param injectionPoint the injection point metadata
* @return factory for obtaining {@link EntityManagerFactory} instances
* @throws IllegalArgumentException if the injection point is not annotated with {@link PersistenceUnit}, or,
- * if the injection point is a method that doesn't follow JavaBean conventions
+ * if the injection point is a method that doesn't follow JavaBean conventions
* @throws IllegalStateException if no suitable persistence units can be resolved
*/
ResourceReferenceFactory registerPersistenceUnitInjectionPoint(InjectionPoint injectionPoint);
diff --git a/weld-spi/src/main/java/org/jboss/weld/injection/spi/helpers/AbstractResourceServices.java b/weld-spi/src/main/java/org/jboss/weld/injection/spi/helpers/AbstractResourceServices.java
index c34e9be4..587ec9f9 100644
--- a/weld-spi/src/main/java/org/jboss/weld/injection/spi/helpers/AbstractResourceServices.java
+++ b/weld-spi/src/main/java/org/jboss/weld/injection/spi/helpers/AbstractResourceServices.java
@@ -20,12 +20,13 @@
import java.lang.reflect.Field;
import java.lang.reflect.Method;
+import javax.naming.Context;
+import javax.naming.NamingException;
+
import jakarta.annotation.Resource;
import jakarta.enterprise.inject.spi.Annotated;
import jakarta.enterprise.inject.spi.AnnotatedParameter;
import jakarta.enterprise.inject.spi.InjectionPoint;
-import javax.naming.Context;
-import javax.naming.NamingException;
import org.jboss.weld.bootstrap.api.Service;
import org.jboss.weld.injection.spi.ResourceInjectionServices;
diff --git a/weld-spi/src/main/java/org/jboss/weld/injection/spi/helpers/ForwardingResourceInjectionServices.java b/weld-spi/src/main/java/org/jboss/weld/injection/spi/helpers/ForwardingResourceInjectionServices.java
index 30aef28a..25926153 100644
--- a/weld-spi/src/main/java/org/jboss/weld/injection/spi/helpers/ForwardingResourceInjectionServices.java
+++ b/weld-spi/src/main/java/org/jboss/weld/injection/spi/helpers/ForwardingResourceInjectionServices.java
@@ -18,8 +18,8 @@
import jakarta.enterprise.inject.spi.InjectionPoint;
-import org.jboss.weld.injection.spi.ResourceReferenceFactory;
import org.jboss.weld.injection.spi.ResourceInjectionServices;
+import org.jboss.weld.injection.spi.ResourceReferenceFactory;
public abstract class ForwardingResourceInjectionServices implements ResourceInjectionServices {
diff --git a/weld-spi/src/main/java/org/jboss/weld/manager/api/WeldInjectionTargetBuilder.java b/weld-spi/src/main/java/org/jboss/weld/manager/api/WeldInjectionTargetBuilder.java
index eda2f794..b5e68735 100644
--- a/weld-spi/src/main/java/org/jboss/weld/manager/api/WeldInjectionTargetBuilder.java
+++ b/weld-spi/src/main/java/org/jboss/weld/manager/api/WeldInjectionTargetBuilder.java
@@ -23,10 +23,10 @@
*
* By default, the returned {@link WeldInjectionTargetBuilder} instance will support:
*
- *
resource injection (e.g. @Resource, @EJB)
- *
decorators, as long as bean is set
- *
lifecycle and around-invoke interceptors
- *
target class lifecycle interceptor callbacks
+ *
resource injection (e.g. @Resource, @EJB)
+ *
decorators, as long as bean is set
+ *
lifecycle and around-invoke interceptors
+ *
target class lifecycle interceptor callbacks
*
*
* Each of these capabilities may be disabled by calling a corresponding set*Enabled(false) method.
@@ -36,37 +36,47 @@
public interface WeldInjectionTargetBuilder {
/**
- * Enables/disables resource injection in the resulting {@link WeldInjectionTargetBuilder}. By default, this feature is enabled.
+ * Enables/disables resource injection in the resulting {@link WeldInjectionTargetBuilder}. By default, this feature is
+ * enabled.
+ *
* @param value enables/disables resource injection
* @return the builder
*/
WeldInjectionTargetBuilder setResourceInjectionEnabled(boolean value);
/**
- * Enables/disables target class lifecycle callback in the resulting {@link WeldInjectionTargetBuilder}. By default, this feature is enabled.
+ * Enables/disables target class lifecycle callback in the resulting {@link WeldInjectionTargetBuilder}. By default, this
+ * feature is enabled.
+ *
* @param value enables/disables target class lifecycle callback
* @return the builder
*/
WeldInjectionTargetBuilder setTargetClassLifecycleCallbacksEnabled(boolean value);
/**
- * Enables/disables interception support in the resulting {@link WeldInjectionTargetBuilder}. By default, this feature is enabled.
+ * Enables/disables interception support in the resulting {@link WeldInjectionTargetBuilder}. By default, this feature is
+ * enabled.
+ *
* @param value enables/disables interception support
* @return the builder
*/
WeldInjectionTargetBuilder setInterceptionEnabled(boolean value);
/**
- * Enables/disables decoration support in the resulting {@link WeldInjectionTargetBuilder}. By default, this feature is enabled as long
+ * Enables/disables decoration support in the resulting {@link WeldInjectionTargetBuilder}. By default, this feature is
+ * enabled as long
* as the bean is set.
+ *
* @param value enables/disables decoration support
* @return the builder
*/
WeldInjectionTargetBuilder setDecorationEnabled(boolean value);
/**
- * Sets the bean that the resulting {@link WeldInjectionTarget} corresponds to. This is an optional attribute of a {@link WeldInjectionTarget} and it
+ * Sets the bean that the resulting {@link WeldInjectionTarget} corresponds to. This is an optional attribute of a
+ * {@link WeldInjectionTarget} and it
* is ok to leave this unset for any non-contextual component.
+ *
* @param bean the specified bean
* @return the builder
*/
@@ -74,6 +84,7 @@ public interface WeldInjectionTargetBuilder {
/**
* Returns a newly-created {@code WeldInjectionTarget} based on the contents of this builder.
+ *
* @return newly-created {@code WeldInjectionTarget}
*/
WeldInjectionTarget build();
diff --git a/weld-spi/src/main/java/org/jboss/weld/manager/api/WeldInjectionTargetFactory.java b/weld-spi/src/main/java/org/jboss/weld/manager/api/WeldInjectionTargetFactory.java
index 76fd3108..ff7fafb1 100644
--- a/weld-spi/src/main/java/org/jboss/weld/manager/api/WeldInjectionTargetFactory.java
+++ b/weld-spi/src/main/java/org/jboss/weld/manager/api/WeldInjectionTargetFactory.java
@@ -33,11 +33,15 @@ public interface WeldInjectionTargetFactory extends InjectionTargetFactory
WeldInjectionTarget createInjectionTarget(Bean bean);
/**
- * Creates a {@link WeldInjectionTarget} implementation that does not support construction/destruction of instances but provides field/setter injection
- * capabilities. Such implementation is often handy for integration with other frameworks in situations when an existing Java object needs to be injected.
+ * Creates a {@link WeldInjectionTarget} implementation that does not support construction/destruction of instances but
+ * provides field/setter injection
+ * capabilities. Such implementation is often handy for integration with other frameworks in situations when an existing
+ * Java object needs to be injected.
*
- * {@link InjectionTarget#produce(jakarta.enterprise.context.spi.CreationalContext)} and {@link InjectionTarget#dispose(Object)} methods should not be called on
- * the returned instance. The {@link InjectionTarget#produce(jakarta.enterprise.context.spi.CreationalContext)} method of the returned injection target
+ * {@link InjectionTarget#produce(jakarta.enterprise.context.spi.CreationalContext)} and
+ * {@link InjectionTarget#dispose(Object)} methods should not be called on
+ * the returned instance. The {@link InjectionTarget#produce(jakarta.enterprise.context.spi.CreationalContext)} method of
+ * the returned injection target
* throws {@link CreationException} if called.
*
* @return the injection target
@@ -46,7 +50,8 @@ public interface WeldInjectionTargetFactory extends InjectionTargetFactory
/**
* Create a new injection target for an interceptor bound using {@link Interceptors} or a deployment descriptor. Unlike
- * {@link #createInjectionTarget(jakarta.enterprise.inject.spi.Bean)}, the resulting InjectionTarget does not support interception as it is itself an
+ * {@link #createInjectionTarget(jakarta.enterprise.inject.spi.Bean)}, the resulting InjectionTarget does not support
+ * interception as it is itself an
* interceptor.
*
* @return the injection target
diff --git a/weld-spi/src/main/java/org/jboss/weld/manager/api/WeldManager.java b/weld-spi/src/main/java/org/jboss/weld/manager/api/WeldManager.java
index 7c7d8dd5..3416cf7f 100644
--- a/weld-spi/src/main/java/org/jboss/weld/manager/api/WeldManager.java
+++ b/weld-spi/src/main/java/org/jboss/weld/manager/api/WeldManager.java
@@ -121,7 +121,8 @@ public interface WeldManager extends BeanManager, Serializable {
/**
* @see CDI-671
- * @return a new {@link Instance} with required type {@link Object} and no required qualifiers ({@link jakarta.enterprise.inject.Default} is added automatically during resolution if
+ * @return a new {@link Instance} with required type {@link Object} and no required qualifiers
+ * ({@link jakarta.enterprise.inject.Default} is added automatically during resolution if
* no qualifiers are selected)
*/
Instance
*
* @author Pete Muir
diff --git a/weld/src/main/java/org/jboss/weld/context/WeldAlterableContext.java b/weld/src/main/java/org/jboss/weld/context/WeldAlterableContext.java
index 3485b632..fcde0387 100644
--- a/weld/src/main/java/org/jboss/weld/context/WeldAlterableContext.java
+++ b/weld/src/main/java/org/jboss/weld/context/WeldAlterableContext.java
@@ -34,13 +34,15 @@
public interface WeldAlterableContext extends AlterableContext {
/**
- * Retrieves set of {@link ContextualInstance} within the context. This entails all instances that were created up to this point - Weld creates
+ * Retrieves set of {@link ContextualInstance} within the context. This entails all instances that were created up to this
+ * point - Weld creates
* them lazily so unless some beans were already used, they have not been stored.
*
* @return Set of all {@link ContextualInstance} existing in this context
*/
default Collection> getAllContextualInstances() {
- throw new UnsupportedOperationException("getAllContextualInstances() is not implemented for context " + this.getClass());
+ throw new UnsupportedOperationException(
+ "getAllContextualInstances() is not implemented for context " + this.getClass());
}
/**
diff --git a/weld/src/main/java/org/jboss/weld/context/activator/ActivateRequestContext.java b/weld/src/main/java/org/jboss/weld/context/activator/ActivateRequestContext.java
index d23e7ba3..45c389a6 100644
--- a/weld/src/main/java/org/jboss/weld/context/activator/ActivateRequestContext.java
+++ b/weld/src/main/java/org/jboss/weld/context/activator/ActivateRequestContext.java
@@ -32,7 +32,8 @@
*
* If the request context is already active then the associated interceptor does nothing.
*
- * The interceptor is registered with a priority of {@link jakarta.interceptor.Interceptor.Priority#PLATFORM_BEFORE} + 100. The same value is used for
+ * The interceptor is registered with a priority of {@link jakarta.interceptor.Interceptor.Priority#PLATFORM_BEFORE} + 100. The
+ * same value is used for
* {@link jakarta.enterprise.context.control.ActivateRequestContext}.
*
* @author Tomas Remes
diff --git a/weld/src/main/java/org/jboss/weld/context/bound/Bound.java b/weld/src/main/java/org/jboss/weld/context/bound/Bound.java
index 9cec3ae4..2d00c9e8 100644
--- a/weld/src/main/java/org/jboss/weld/context/bound/Bound.java
+++ b/weld/src/main/java/org/jboss/weld/context/bound/Bound.java
@@ -1,17 +1,17 @@
package org.jboss.weld.context.bound;
-import java.lang.annotation.Documented;
-import java.lang.annotation.Retention;
-import java.lang.annotation.Target;
-
-import jakarta.inject.Qualifier;
-
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.PARAMETER;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
+import java.lang.annotation.Documented;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+import jakarta.inject.Qualifier;
+
/**
* Qualifier used with all for all of the bound (map backed) contexts Weld offers.
*
diff --git a/weld/src/main/java/org/jboss/weld/context/bound/BoundLiteral.java b/weld/src/main/java/org/jboss/weld/context/bound/BoundLiteral.java
index 79fcb664..9ba2bebf 100644
--- a/weld/src/main/java/org/jboss/weld/context/bound/BoundLiteral.java
+++ b/weld/src/main/java/org/jboss/weld/context/bound/BoundLiteral.java
@@ -1,34 +1,34 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2008, Red Hat, Inc., and individual contributors
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * 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,
- * 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.
- */
-package org.jboss.weld.context.bound;
-
-import jakarta.enterprise.util.AnnotationLiteral;
-
-/**
- * Annotation literal for {@link Bound}
- *
- * @author Pete Muir
- */
-@SuppressWarnings("all")
-public class BoundLiteral extends AnnotationLiteral implements Bound {
-
- public static final Bound INSTANCE = new BoundLiteral();
-
- private BoundLiteral() {
- }
-
-}
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2008, Red Hat, Inc., and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * 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,
+ * 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.
+ */
+package org.jboss.weld.context.bound;
+
+import jakarta.enterprise.util.AnnotationLiteral;
+
+/**
+ * Annotation literal for {@link Bound}
+ *
+ * @author Pete Muir
+ */
+@SuppressWarnings("all")
+public class BoundLiteral extends AnnotationLiteral implements Bound {
+
+ public static final Bound INSTANCE = new BoundLiteral();
+
+ private BoundLiteral() {
+ }
+
+}
diff --git a/weld/src/main/java/org/jboss/weld/context/ejb/Ejb.java b/weld/src/main/java/org/jboss/weld/context/ejb/Ejb.java
index dd0b38d4..32db90cd 100644
--- a/weld/src/main/java/org/jboss/weld/context/ejb/Ejb.java
+++ b/weld/src/main/java/org/jboss/weld/context/ejb/Ejb.java
@@ -1,17 +1,17 @@
package org.jboss.weld.context.ejb;
-import java.lang.annotation.Documented;
-import java.lang.annotation.Retention;
-import java.lang.annotation.Target;
-
-import jakarta.inject.Qualifier;
-
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.PARAMETER;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
+import java.lang.annotation.Documented;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+import jakarta.inject.Qualifier;
+
/**
* Qualifier used with all for all of the EJB contexts Weld offers.
*
diff --git a/weld/src/main/java/org/jboss/weld/context/ejb/EjbLiteral.java b/weld/src/main/java/org/jboss/weld/context/ejb/EjbLiteral.java
index de2050a5..43a5520f 100644
--- a/weld/src/main/java/org/jboss/weld/context/ejb/EjbLiteral.java
+++ b/weld/src/main/java/org/jboss/weld/context/ejb/EjbLiteral.java
@@ -1,34 +1,34 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2008, Red Hat, Inc., and individual contributors
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * 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,
- * 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.
- */
-package org.jboss.weld.context.ejb;
-
-import jakarta.enterprise.util.AnnotationLiteral;
-
-/**
- * Annotation literal for {@link Ejb}
- *
- * @author Pete Muir
- */
-@SuppressWarnings("all")
-public class EjbLiteral extends AnnotationLiteral implements Ejb {
-
- public static final Ejb INSTANCE = new EjbLiteral();
-
- private EjbLiteral() {
- }
-
-}
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2008, Red Hat, Inc., and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * 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,
+ * 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.
+ */
+package org.jboss.weld.context.ejb;
+
+import jakarta.enterprise.util.AnnotationLiteral;
+
+/**
+ * Annotation literal for {@link Ejb}
+ *
+ * @author Pete Muir
+ */
+@SuppressWarnings("all")
+public class EjbLiteral extends AnnotationLiteral implements Ejb {
+
+ public static final Ejb INSTANCE = new EjbLiteral();
+
+ private EjbLiteral() {
+ }
+
+}
diff --git a/weld/src/main/java/org/jboss/weld/context/http/Http.java b/weld/src/main/java/org/jboss/weld/context/http/Http.java
index 9c838ee6..3729f8cf 100644
--- a/weld/src/main/java/org/jboss/weld/context/http/Http.java
+++ b/weld/src/main/java/org/jboss/weld/context/http/Http.java
@@ -1,17 +1,17 @@
package org.jboss.weld.context.http;
-import java.lang.annotation.Documented;
-import java.lang.annotation.Retention;
-import java.lang.annotation.Target;
-
-import jakarta.inject.Qualifier;
-
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.PARAMETER;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
+import java.lang.annotation.Documented;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+import jakarta.inject.Qualifier;
+
/**
* Qualifier used with all for all of the Servlet backed contexts Weld offers.
*
diff --git a/weld/src/main/java/org/jboss/weld/context/http/HttpConversationContext.java b/weld/src/main/java/org/jboss/weld/context/http/HttpConversationContext.java
index 3845d7d6..469a9778 100644
--- a/weld/src/main/java/org/jboss/weld/context/http/HttpConversationContext.java
+++ b/weld/src/main/java/org/jboss/weld/context/http/HttpConversationContext.java
@@ -41,12 +41,15 @@ public interface HttpConversationContext extends BoundContext
- * Activate the conversation context lazily - neither determine the conversation id, nor initialize the context. The context is only initialized when a
- * conversation-scoped bean is accessed for the first time. The callback, if specified, is executed during initialization of a transient conversation. The
+ * Activate the conversation context lazily - neither determine the conversation id, nor initialize the context. The context
+ * is only initialized when a
+ * conversation-scoped bean is accessed for the first time. The callback, if specified, is executed during initialization of
+ * a transient conversation. The
* implementation must throw a {@link RuntimeException} if the lazy initialization is not supported.
*
*
- * @param transientConversationInitializationCallback the callback which is invoked during initialization of a transient conversation
+ * @param transientConversationInitializationCallback the callback which is invoked during initialization of a transient
+ * conversation
*/
default void activateLazily(Consumer transientConversationInitializationCallback) {
throw new UnsupportedOperationException();
diff --git a/weld/src/main/java/org/jboss/weld/context/http/HttpLiteral.java b/weld/src/main/java/org/jboss/weld/context/http/HttpLiteral.java
index 7cafa58c..cf2f3a9e 100644
--- a/weld/src/main/java/org/jboss/weld/context/http/HttpLiteral.java
+++ b/weld/src/main/java/org/jboss/weld/context/http/HttpLiteral.java
@@ -1,34 +1,34 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2008, Red Hat, Inc., and individual contributors
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * 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,
- * 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.
- */
-package org.jboss.weld.context.http;
-
-import jakarta.enterprise.util.AnnotationLiteral;
-
-/**
- * Annotation literal for {@link Http}
- *
- * @author Pete Muir
- */
-@SuppressWarnings("all")
-public class HttpLiteral extends AnnotationLiteral implements Http {
-
- public static final Http INSTANCE = new HttpLiteral();
-
- private HttpLiteral() {
- }
-
-}
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2008, Red Hat, Inc., and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * 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,
+ * 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.
+ */
+package org.jboss.weld.context.http;
+
+import jakarta.enterprise.util.AnnotationLiteral;
+
+/**
+ * Annotation literal for {@link Http}
+ *
+ * @author Pete Muir
+ */
+@SuppressWarnings("all")
+public class HttpLiteral extends AnnotationLiteral implements Http {
+
+ public static final Http INSTANCE = new HttpLiteral();
+
+ private HttpLiteral() {
+ }
+
+}
diff --git a/weld/src/main/java/org/jboss/weld/context/unbound/Unbound.java b/weld/src/main/java/org/jboss/weld/context/unbound/Unbound.java
index 2a0a3d4d..3c3fd8ad 100644
--- a/weld/src/main/java/org/jboss/weld/context/unbound/Unbound.java
+++ b/weld/src/main/java/org/jboss/weld/context/unbound/Unbound.java
@@ -1,17 +1,17 @@
package org.jboss.weld.context.unbound;
-import java.lang.annotation.Documented;
-import java.lang.annotation.Retention;
-import java.lang.annotation.Target;
-
-import jakarta.inject.Qualifier;
-
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.PARAMETER;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
+import java.lang.annotation.Documented;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+import jakarta.inject.Qualifier;
+
/**
* Qualifier used with all for all of the unbound contexts Weld offers.
*
diff --git a/weld/src/main/java/org/jboss/weld/context/unbound/UnboundLiteral.java b/weld/src/main/java/org/jboss/weld/context/unbound/UnboundLiteral.java
index e1d8504a..b0fd1b95 100644
--- a/weld/src/main/java/org/jboss/weld/context/unbound/UnboundLiteral.java
+++ b/weld/src/main/java/org/jboss/weld/context/unbound/UnboundLiteral.java
@@ -1,36 +1,36 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2008, Red Hat, Inc., and individual contributors
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * 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,
- * 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.
- */
-package org.jboss.weld.context.unbound;
-
-import jakarta.enterprise.util.AnnotationLiteral;
-
-import org.jboss.weld.context.bound.Bound;
-
-/**
- * Annotation literal for {@link Bound}
- *
- * @author Pete Muir
- */
-@SuppressWarnings("all")
-public class UnboundLiteral extends AnnotationLiteral implements Unbound {
-
- public static final Unbound INSTANCE = new UnboundLiteral();
-
- private UnboundLiteral() {
- }
-
-}
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2008, Red Hat, Inc., and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * 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,
+ * 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.
+ */
+package org.jboss.weld.context.unbound;
+
+import jakarta.enterprise.util.AnnotationLiteral;
+
+import org.jboss.weld.context.bound.Bound;
+
+/**
+ * Annotation literal for {@link Bound}
+ *
+ * @author Pete Muir
+ */
+@SuppressWarnings("all")
+public class UnboundLiteral extends AnnotationLiteral implements Unbound {
+
+ public static final Unbound INSTANCE = new UnboundLiteral();
+
+ private UnboundLiteral() {
+ }
+
+}
diff --git a/weld/src/main/java/org/jboss/weld/events/WeldEvent.java b/weld/src/main/java/org/jboss/weld/events/WeldEvent.java
index 96e5446f..50c46808 100644
--- a/weld/src/main/java/org/jboss/weld/events/WeldEvent.java
+++ b/weld/src/main/java/org/jboss/weld/events/WeldEvent.java
@@ -35,14 +35,14 @@ public interface WeldEvent extends Event {
* {@code Event} where T is {@link java.lang.Object}.
*
*
- * @param the required type
- * @param type a {@link java.lang.reflect.Type} representing the required type
+ * @param the required type
+ * @param type a {@link java.lang.reflect.Type} representing the required type
* @param qualifiers the additional required qualifiers
* @return the child {@code Event}
* @throws IllegalArgumentException if passed two instances of the same non repeating qualifier type, or an instance of an
- * annotation that is not a qualifier type
- * @throws IllegalStateException if invoked on {@code Event} where T is of any other type than
- * {@link java.lang.Object}
+ * annotation that is not a qualifier type
+ * @throws IllegalStateException if invoked on {@code Event} where T is of any other type than
+ * {@link java.lang.Object}
*/
WeldEvent select(Type type, Annotation... qualifiers);
diff --git a/weld/src/main/java/org/jboss/weld/events/WeldNotificationOptions.java b/weld/src/main/java/org/jboss/weld/events/WeldNotificationOptions.java
index 841c6f2d..21ba3a6b 100644
--- a/weld/src/main/java/org/jboss/weld/events/WeldNotificationOptions.java
+++ b/weld/src/main/java/org/jboss/weld/events/WeldNotificationOptions.java
@@ -19,7 +19,8 @@
import jakarta.enterprise.event.NotificationOptions;
/**
- * The {@link jakarta.enterprise.event.Event#fireAsync(Object, NotificationOptions)} method allows to configure the notification of asynchronous observer methods.
+ * The {@link jakarta.enterprise.event.Event#fireAsync(Object, NotificationOptions)} method allows to configure the notification
+ * of asynchronous observer methods.
*
* Weld defines the following non-portable options:
*
@@ -43,8 +44,10 @@ public interface WeldNotificationOptions extends NotificationOptions {
/**
* Makes it possible to specify a timeout (in milliseconds) after which the returned completion stage must be completed.
*
- * If the time expires the stage is completed exceptionally with a {@link java.util.concurrent.CompletionException} holding the
- * {@link java.util.concurrent.TimeoutException} as its cause. The expiration does not abort the notification of the observers.
+ * If the time expires the stage is completed exceptionally with a {@link java.util.concurrent.CompletionException} holding
+ * the
+ * {@link java.util.concurrent.TimeoutException} as its cause. The expiration does not abort the notification of the
+ * observers.
*
*/
String TIMEOUT = "weld.async.notification.timeout";
@@ -77,7 +80,8 @@ enum NotificationMode {
*/
SERIAL,
/**
- * Async observers are notified in parallel assuming that the {@link java.util.concurrent.Executor} used supports parallel execution.
+ * Async observers are notified in parallel assuming that the {@link java.util.concurrent.Executor} used supports
+ * parallel execution.
*/
PARALLEL,;
diff --git a/weld/src/main/java/org/jboss/weld/inject/WeldInstance.java b/weld/src/main/java/org/jboss/weld/inject/WeldInstance.java
index 55cc92c5..aafea3ba 100644
--- a/weld/src/main/java/org/jboss/weld/inject/WeldInstance.java
+++ b/weld/src/main/java/org/jboss/weld/inject/WeldInstance.java
@@ -34,8 +34,10 @@
* Represents an enhanced version of {@link Instance}.
*
*
- * In the following example we filter out beans which are not {@link Dependent} then sort the beans by priority and use the handler whose bean has the highest
- * priority (according to {@link #getPriorityComparator()}) to obtain the hello string. Note that contextual references for beans with lower priority are not
+ * In the following example we filter out beans which are not {@link Dependent} then sort the beans by priority and use the
+ * handler whose bean has the highest
+ * priority (according to {@link #getPriorityComparator()}) to obtain the hello string. Note that contextual references for
+ * beans with lower priority are not
* created at all.
*
*
@@ -66,7 +68,8 @@ public interface WeldInstance extends Instance {
* This method is deprecated as a similar functioning method exists in CDI 4.0 and newer.
* Users should instead use {@link Instance#getHandle()}.
*
- * Obtains an initialized contextual reference handler for the bean that has the required type and required qualifiers and is eligible for injection.
+ * Obtains an initialized contextual reference handler for the bean that has the required type and required qualifiers and
+ * is eligible for injection.
*
*
* The contextual reference is obtained lazily, i.e. when first needed.
@@ -83,11 +86,13 @@ public interface WeldInstance extends Instance {
* This method is deprecated as a similar functioning method exists in CDI 4.0 and newer.
* Users should instead use {@link Instance#handles()}.
*
- * Allows to iterate over contextual reference handlers for all the beans that have the required type and required qualifiers and are eligible
+ * Allows to iterate over contextual reference handlers for all the beans that have the required type and required
+ * qualifiers and are eligible
* for injection.
*
*
- * Note that the returned {@link Iterable} is stateless and so each {@link Iterable#iterator()} produces a new set of handlers.
+ * Note that the returned {@link Iterable} is stateless and so each {@link Iterable#iterator()} produces a new set of
+ * handlers.
*
*
* @return a new iterable
@@ -112,7 +117,8 @@ default Stream extends Handler> handlersStream() {
*
* The returned comparator sorts handlers by priority in descending order.
*
- *
A class-based bean whose annotated type has {@code jakarta.annotation.Priority} has the priority of value {@code jakarta.annotation.Priority#value()}
+ *
A class-based bean whose annotated type has {@code jakarta.annotation.Priority} has the priority of value
+ * {@code jakarta.annotation.Priority#value()}
*
A custom bean which implements {@link Prioritized} has the priority of value {@link Prioritized#getPriority()}
*
Any other bean has the priority of value 0
*
@@ -125,7 +131,8 @@ default Stream extends Handler> handlersStream() {
/**
* The returned comparator sorts handles by priority in descending order.
*
- *
A class-based bean whose annotated type has {@code jakarta.annotation.Priority} has the priority of value {@code jakarta.annotation.Priority#value()}
+ *
A class-based bean whose annotated type has {@code jakarta.annotation.Priority} has the priority of value
+ * {@code jakarta.annotation.Priority#value()}
*
A custom bean which implements {@link Prioritized} has the priority of value {@link Prioritized#getPriority()}
* Obtains a child {@code Instance} for the given required type and additional required qualifiers.
* Must be invoked on {@code Instance} where T is {@link java.lang.Object}.
*
*
* @param the required type
- * @param subtype a {@link java.lang.reflect.Type} representing the required type
+ * @param subtype a {@link java.lang.reflect.Type} representing the required type
* @param qualifiers the additional required qualifiers
* @return the child {@code Instance}
* @throws IllegalArgumentException if passed two instances of the same non repeating qualifier type, or an instance of an
- * annotation that is not a qualifier type
- * @throws IllegalStateException if the container is already shutdown
- * @throws IllegalStateException if invoked on {@code Instance} where T is of any other type than {@link java.lang.Object}
+ * annotation that is not a qualifier type
+ * @throws IllegalStateException if the container is already shutdown
+ * @throws IllegalStateException if invoked on {@code Instance} where T is of any other type than
+ * {@link java.lang.Object}
*/
WeldInstance select(Type subtype, Annotation... qualifiers);