Remove APIs marked as deprecated for removal
Closes gh-33809
This commit is contained in:
@@ -171,30 +171,6 @@ public final class BeanInstanceSupplier<T> extends AutowiredElementResolver impl
|
||||
return new BeanInstanceSupplier<>(this.lookup, generator, null, this.shortcutBeanNames);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return a new {@link BeanInstanceSupplier} instance that uses the specified
|
||||
* {@code generator} supplier to instantiate the underlying bean.
|
||||
* @param generator a {@link ThrowingSupplier} to instantiate the underlying bean
|
||||
* @return a new {@link BeanInstanceSupplier} instance with the specified generator
|
||||
* @deprecated in favor of {@link #withGenerator(ThrowingFunction)}
|
||||
*/
|
||||
@Deprecated(since = "6.0.11", forRemoval = true)
|
||||
public BeanInstanceSupplier<T> withGenerator(ThrowingSupplier<T> generator) {
|
||||
Assert.notNull(generator, "'generator' must not be null");
|
||||
return new BeanInstanceSupplier<>(this.lookup, registeredBean -> generator.get(),
|
||||
null, this.shortcutBeanNames);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return a new {@link BeanInstanceSupplier} instance
|
||||
* that uses direct bean name injection shortcuts for specific parameters.
|
||||
* @deprecated in favor of {@link #withShortcut(String...)}
|
||||
*/
|
||||
@Deprecated(since = "6.2", forRemoval = true)
|
||||
public BeanInstanceSupplier<T> withShortcuts(String... beanNames) {
|
||||
return withShortcut(beanNames);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return a new {@link BeanInstanceSupplier} instance that uses
|
||||
* direct bean name injection shortcuts for specific parameters.
|
||||
|
||||
@@ -55,23 +55,6 @@ public class SimpleInstantiationStrategy implements InstantiationStrategy {
|
||||
return currentlyInvokedFactoryMethod.get();
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the factory method currently being invoked or {@code null} to remove
|
||||
* the current value, if any.
|
||||
* @param method the factory method currently being invoked or {@code null}
|
||||
* @since 6.0
|
||||
* @deprecated in favor of {@link #instantiateWithFactoryMethod(Method, Supplier)}
|
||||
*/
|
||||
@Deprecated(since = "6.2", forRemoval = true)
|
||||
public static void setCurrentlyInvokedFactoryMethod(@Nullable Method method) {
|
||||
if (method != null) {
|
||||
currentlyInvokedFactoryMethod.set(method);
|
||||
}
|
||||
else {
|
||||
currentlyInvokedFactoryMethod.remove();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Invoke the given {@code instanceSupplier} with the factory method exposed
|
||||
* as being invoked.
|
||||
|
||||
Reference in New Issue
Block a user