Browse Source

Deprecate the BeanShell scripting support

Closes gh-35720
pull/35723/head
Sébastien Deleuze 2 months ago
parent
commit
b1cd508016
  1. 2
      spring-context/src/main/java/org/springframework/scripting/bsh/BshScriptEvaluator.java
  2. 2
      spring-context/src/main/java/org/springframework/scripting/bsh/BshScriptFactory.java
  3. 2
      spring-context/src/main/java/org/springframework/scripting/bsh/BshScriptUtils.java

2
spring-context/src/main/java/org/springframework/scripting/bsh/BshScriptEvaluator.java

@ -35,7 +35,9 @@ import org.springframework.scripting.ScriptSource;
* @author Juergen Hoeller * @author Juergen Hoeller
* @since 4.0 * @since 4.0
* @see Interpreter#eval(String) * @see Interpreter#eval(String)
* @deprecated with no replacement as not actively maintained anymore
*/ */
@Deprecated(since = "7.0")
public class BshScriptEvaluator implements ScriptEvaluator, BeanClassLoaderAware { public class BshScriptEvaluator implements ScriptEvaluator, BeanClassLoaderAware {
private @Nullable ClassLoader classLoader; private @Nullable ClassLoader classLoader;

2
spring-context/src/main/java/org/springframework/scripting/bsh/BshScriptFactory.java

@ -42,7 +42,9 @@ import org.springframework.util.ReflectionUtils;
* @since 2.0 * @since 2.0
* @see BshScriptUtils * @see BshScriptUtils
* @see org.springframework.scripting.support.ScriptFactoryPostProcessor * @see org.springframework.scripting.support.ScriptFactoryPostProcessor
* @deprecated with no replacement as not actively maintained anymore
*/ */
@Deprecated(since = "7.0")
public class BshScriptFactory implements ScriptFactory, BeanClassLoaderAware { public class BshScriptFactory implements ScriptFactory, BeanClassLoaderAware {
private final String scriptSourceLocator; private final String scriptSourceLocator;

2
spring-context/src/main/java/org/springframework/scripting/bsh/BshScriptUtils.java

@ -38,7 +38,9 @@ import org.springframework.util.ReflectionUtils;
* @author Rob Harrop * @author Rob Harrop
* @author Juergen Hoeller * @author Juergen Hoeller
* @since 2.0 * @since 2.0
* @deprecated with no replacement as not actively maintained anymore
*/ */
@Deprecated(since = "7.0")
public abstract class BshScriptUtils { public abstract class BshScriptUtils {
/** /**

Loading…
Cancel
Save