diff --git a/runtime/bundles/org.eclipse.e4.core.di/META-INF/MANIFEST.MF b/runtime/bundles/org.eclipse.e4.core.di/META-INF/MANIFEST.MF index 5e8a7d0673c..16709d0eaf0 100644 --- a/runtime/bundles/org.eclipse.e4.core.di/META-INF/MANIFEST.MF +++ b/runtime/bundles/org.eclipse.e4.core.di/META-INF/MANIFEST.MF @@ -1,7 +1,7 @@ Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-SymbolicName: org.eclipse.e4.core.di -Bundle-Version: 1.9.800.qualifier +Bundle-Version: 1.9.900.qualifier Bundle-Name: %pluginName Bundle-Vendor: %providerName Bundle-Localization: plugin @@ -15,9 +15,7 @@ Export-Package: org.eclipse.e4.core.di;version="1.7.0", org.eclipse.e4.core.internal.di.osgi;x-internal:=true, org.eclipse.e4.core.internal.di.shared;x-friends:="org.eclipse.e4.core.contexts,org.eclipse.e4.core.di.extensions.supplier" Require-Bundle: org.eclipse.e4.core.di.annotations;bundle-version="[1.4.0,2.0.0)";visibility:=reexport -Import-Package: jakarta.annotation;version="[2.0.0,4.0.0)", - jakarta.inject;version="[2,3)", - org.eclipse.osgi.framework.log;version="1.1.0", +Import-Package: org.eclipse.osgi.framework.log;version="1.1.0", org.osgi.framework;version="[1.8.0,2.0.0)", org.osgi.util.tracker;version="[1.5.1,2.0.0)" Automatic-Module-Name: org.eclipse.e4.core.di diff --git a/runtime/bundles/org.eclipse.e4.core.di/src/org/eclipse/e4/core/di/IInjector.java b/runtime/bundles/org.eclipse.e4.core.di/src/org/eclipse/e4/core/di/IInjector.java index ee96a8ed073..d11afc4e5eb 100644 --- a/runtime/bundles/org.eclipse.e4.core.di/src/org/eclipse/e4/core/di/IInjector.java +++ b/runtime/bundles/org.eclipse.e4.core.di/src/org/eclipse/e4/core/di/IInjector.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2010, 2017 IBM Corporation and others. + * Copyright (c) 2010, 2026 IBM Corporation and others. * * This program and the accompanying materials * are made available under the terms of the Eclipse Public License 2.0 @@ -14,10 +14,6 @@ *******************************************************************************/ package org.eclipse.e4.core.di; -import jakarta.annotation.PostConstruct; -import jakarta.annotation.PreDestroy; -import jakarta.inject.Scope; -import jakarta.inject.Singleton; import java.lang.annotation.Annotation; import org.eclipse.e4.core.di.suppliers.PrimaryObjectSupplier; @@ -37,7 +33,8 @@ * The injection of values is generally done as a number of calls. User objects * that want to finalize the injected data (for instance, to perform * calculations based on multiple injected values) can place such calculations - * in a method with the {@link PostConstruct} annotation. + * in a method with a {@code PostConstruct} annotation, e.g. + * {@code jakarta.annotation.PostConstruct} *
** When injecting values, all fields are injected prior to injection of methods. @@ -51,7 +48,8 @@ *
** When supplier is disposed, the injector will attempt to notify all injected - * objects by calling methods with the {@link PreDestroy} annotation. + * objects by calling methods with a {@code PreDestroy} annotation, e.g. + * {@code jakarta.annotation.PreDestroy}. * * @noimplement This interface is not intended to be implemented by clients. * @noextend This interface is not intended to be extended by clients. @@ -151,13 +149,16 @@ void inject(Object object, PrimaryObjectSupplier objectSupplier, PrimaryObjectSu /** * Obtain an instance of the specified class and inject it with the data from the supplier. + *
+ * For examples, see also {@code jakarta.inject.Scope} or + * {@code jakarta.inject.Singleton}. + *
+ * * @param+ * For examples, see also {@code jakarta.inject.Scope} or + * {@code jakarta.inject.Singleton}. + *
+ * * @param+ * For example, see also {@code jakarta.inject.Qualifier}. + *
* - * @see jakarta.inject.Qualifier * @noextend This interface is not intended to be extended by clients. * @noimplement This interface is not intended to be implemented by clients. * @since 1.7 diff --git a/runtime/bundles/org.eclipse.e4.core.di/src/org/eclipse/e4/core/internal/di/ClassRequestor.java b/runtime/bundles/org.eclipse.e4.core.di/src/org/eclipse/e4/core/internal/di/ClassRequestor.java index 9ef646c4281..e0c598e9391 100644 --- a/runtime/bundles/org.eclipse.e4.core.di/src/org/eclipse/e4/core/internal/di/ClassRequestor.java +++ b/runtime/bundles/org.eclipse.e4.core.di/src/org/eclipse/e4/core/internal/di/ClassRequestor.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2010, 2015 IBM Corporation and others. + * Copyright (c) 2010, 2026 IBM Corporation and others. * * This program and the accompanying materials * are made available under the terms of the Eclipse Public License 2.0 @@ -13,11 +13,8 @@ *******************************************************************************/ package org.eclipse.e4.core.internal.di; -import jakarta.inject.Named; -import java.lang.reflect.Field; import org.eclipse.e4.core.di.IInjector; import org.eclipse.e4.core.di.InjectionException; -import org.eclipse.e4.core.di.annotations.Optional; import org.eclipse.e4.core.di.suppliers.IObjectDescriptor; import org.eclipse.e4.core.di.suppliers.PrimaryObjectSupplier; @@ -29,11 +26,7 @@ */ public class ClassRequestor extends Requestor