インターフェースの使用
org.springframework.scripting.ScriptSource
ScriptSource を使用するパッケージ
パッケージ
説明
Spring のスクリプトサポートのコアインターフェース。
BeanShell (および BeanShell2)を Spring のスクリプトインフラストラクチャに統合するパッケージ。
Groovy を Spring のスクリプトインフラストラクチャに統合するパッケージ。
Spring のスクリプトパッケージのサポートクラス。
org.springframework.scripting 内の ScriptSource 使用
ScriptSource を返す org.springframework.scripting のメソッド型 ScriptSource のパラメーターを持つ org.springframework.scripting のメソッド修飾子と型メソッド説明ScriptEvaluator.evaluate(ScriptSource script) 指定されたスクリプトを評価します。指定された引数で指定されたスクリプトを評価します。ScriptFactory.getScriptedObject(ScriptSource scriptSource, ClassSE<?> @Nullable... actualInterfaces) スクリプト化された Java オブジェクトを作成するためのファクトリメソッド。ScriptFactory.getScriptedObjectType(ScriptSource scriptSource) スクリプト Java オブジェクトの型を判別します。booleanScriptFactory.requiresScriptedObjectRefresh(ScriptSource scriptSource) リフレッシュが必要かどうかを判断します (たとえば、ScriptSource のisModified()メソッドを通じて)。型 ScriptSource のパラメーターを持つ org.springframework.scripting のコンストラクター修飾子コンストラクター説明ScriptCompilationException(ScriptSource scriptSource, StringSE msg) ScriptCompilationException のコンストラクター。ScriptCompilationException(ScriptSource scriptSource, StringSE msg, ThrowableSE cause) ScriptCompilationException のコンストラクター。ScriptCompilationException(ScriptSource scriptSource, ThrowableSE cause) ScriptCompilationException のコンストラクター。org.springframework.scripting.bsh 内の ScriptSource 使用
型 ScriptSource のパラメーターを持つ org.springframework.scripting.bsh のメソッド修飾子と型メソッド説明BshScriptEvaluator.evaluate(ScriptSource script) 使用すべきではありません。使用すべきではありません。BshScriptFactory.getScriptedObject(ScriptSource scriptSource, ClassSE<?> @Nullable... actualInterfaces) 使用すべきではありません。BshScriptUtilsを介して BeanShell スクリプトをロードして解析します。BshScriptFactory.getScriptedObjectType(ScriptSource scriptSource) 使用すべきではありません。booleanBshScriptFactory.requiresScriptedObjectRefresh(ScriptSource scriptSource) 使用すべきではありません。org.springframework.scripting.groovy 内の ScriptSource 使用
型 ScriptSource のパラメーターを持つ org.springframework.scripting.groovy のメソッド修飾子と型メソッド説明GroovyScriptEvaluator.evaluate(ScriptSource script) GroovyScriptFactory.executeScript(ScriptSource scriptSource, ClassSE<?> scriptClass) 指定された Groovy スクリプトクラスをインスタンス化し、必要に応じて実行します。GroovyScriptFactory.getScriptedObject(ScriptSource scriptSource, ClassSE<?> @Nullable... actualInterfaces) GroovyClassLoader を介して Groovy スクリプトをロードして解析します。GroovyScriptFactory.getScriptedObjectType(ScriptSource scriptSource) booleanGroovyScriptFactory.requiresScriptedObjectRefresh(ScriptSource scriptSource) org.springframework.scripting.support 内の ScriptSource 使用
ScriptSource を実装している org.springframework.scripting.support のクラス修飾子と型クラス説明classSpring のResource抽象化に基づくScriptSource実装。classScriptSourceインターフェースの静的実装。スクリプトソーステキストを含む指定された文字列をカプセル化します。修飾子と型メソッド説明protected ScriptSourceScriptFactoryPostProcessor.convertToScriptSource(StringSE beanName, StringSE scriptSourceLocator, ResourceLoader resourceLoader) 指定されたスクリプトソースロケータを ScriptSource インスタンスに変換します。protected ScriptSourceScriptFactoryPostProcessor.getScriptSource(StringSE beanName, StringSE scriptSourceLocator) 指定された Bean の ScriptSource を取得し、まだキャッシュされていない場合は遅延して作成します。型 ScriptSource のパラメーターを持つ org.springframework.scripting.support のメソッド修飾子と型メソッド説明StandardScriptFactory.adaptToInterfaces(@Nullable ObjectSE script, ScriptSource scriptSource, ClassSE<?>... actualInterfaces) protected BeanDefinitionScriptFactoryPostProcessor.createScriptedObjectBeanDefinition(BeanDefinition bd, StringSE scriptFactoryBeanName, ScriptSource scriptSource, ClassSE<?> @Nullable [] interfaces) 指定されたスクリプト定義に基づいて、スクリプトオブジェクトの Bean 定義を作成し、スクリプトオブジェクトに関連する定義データ(つまり、Bean クラスとコンストラクター引数を除くすべて)を抽出します。StandardScriptEvaluator.evaluate(ScriptSource script) StandardScriptEvaluator.evaluate(ScriptSource script, @Nullable MapSE<StringSE, ObjectSE> argumentBindings) protected ObjectSEStandardScriptFactory.evaluateScript(ScriptSource scriptSource) StandardScriptFactory.getScriptedObject(ScriptSource scriptSource, ClassSE<?> @Nullable... actualInterfaces) JSR-223 の ScriptEngine を介してスクリプトをロードして解析します。StandardScriptFactory.getScriptedObjectType(ScriptSource scriptSource) protected ScriptEngineSEStandardScriptEvaluator.getScriptEngine(ScriptSource script) 指定されたスクリプトで使用する JSR-223 ScriptEngine を取得します。booleanStandardScriptFactory.requiresScriptedObjectRefresh(ScriptSource scriptSource) protected @Nullable ScriptEngineSEStandardScriptFactory.retrieveScriptEngine(ScriptSource scriptSource) 型 ScriptSource のパラメーターを持つ org.springframework.scripting.support のコンストラクター修飾子コンストラクター説明RefreshableScriptTargetSource(BeanFactory beanFactory, StringSE beanName, ScriptFactory scriptFactory, ScriptSource scriptSource, boolean isFactoryBean) 新しい RefreshableScriptTargetSource を作成します。