接口的使用
cn.taketoday.scripting.ScriptSource
使用ScriptSource的程序包
程序包
说明
Core interfaces for Framework's scripting support.
Package providing integration of
BeanShell
(and BeanShell2)
into Framework's scripting infrastructure.
Package providing integration of
Groovy
into Framework's scripting infrastructure.
Support classes for Framework's scripting package.
-
cn.taketoday.scripting中ScriptSource的使用
修饰符和类型方法说明ScriptCompilationException.getScriptSource()Return the source for the offending script.参数类型为ScriptSource的cn.taketoday.scripting中的方法修饰符和类型方法说明ScriptEvaluator.evaluate(ScriptSource script) Evaluate the given script.ScriptEvaluator.evaluate(ScriptSource script, Map<String, Object> arguments) Evaluate the given script with the given arguments.ScriptFactory.getScriptedObject(ScriptSource scriptSource, Class<?>... actualInterfaces) Factory method for creating the scripted Java object.Class<?>ScriptFactory.getScriptedObjectType(ScriptSource scriptSource) Determine the type of the scripted Java object.booleanScriptFactory.requiresScriptedObjectRefresh(ScriptSource scriptSource) Determine whether a refresh is required (e.g. through ScriptSource'sisModified()method).参数类型为ScriptSource的cn.taketoday.scripting中的构造器限定符构造器说明ScriptCompilationException(ScriptSource scriptSource, String msg) Constructor for ScriptCompilationException.ScriptCompilationException(ScriptSource scriptSource, String msg, Throwable cause) Constructor for ScriptCompilationException.ScriptCompilationException(ScriptSource scriptSource, Throwable cause) Constructor for ScriptCompilationException. -
cn.taketoday.scripting.bsh中ScriptSource的使用
参数类型为ScriptSource的cn.taketoday.scripting.bsh中的方法修饰符和类型方法说明BshScriptEvaluator.evaluate(ScriptSource script) BshScriptEvaluator.evaluate(ScriptSource script, Map<String, Object> arguments) BshScriptFactory.getScriptedObject(ScriptSource scriptSource, Class<?>... actualInterfaces) Load and parse the BeanShell script viaBshScriptUtils.Class<?>BshScriptFactory.getScriptedObjectType(ScriptSource scriptSource) booleanBshScriptFactory.requiresScriptedObjectRefresh(ScriptSource scriptSource) -
cn.taketoday.scripting.groovy中ScriptSource的使用
修饰符和类型方法说明GroovyScriptEvaluator.evaluate(ScriptSource script) GroovyScriptEvaluator.evaluate(ScriptSource script, Map<String, Object> arguments) protected ObjectGroovyScriptFactory.executeScript(ScriptSource scriptSource, Class<?> scriptClass) Instantiate the given Groovy script class and run it if necessary.GroovyScriptFactory.getScriptedObject(ScriptSource scriptSource, Class<?>... actualInterfaces) Loads and parses the Groovy script via the GroovyClassLoader.Class<?>GroovyScriptFactory.getScriptedObjectType(ScriptSource scriptSource) booleanGroovyScriptFactory.requiresScriptedObjectRefresh(ScriptSource scriptSource) -
cn.taketoday.scripting.support中ScriptSource的使用
修饰符和类型类说明classScriptSourceimplementation based on Framework'sResourceabstraction.classStatic implementation of theScriptSourceinterface, encapsulating a given String that contains the script source text.修饰符和类型方法说明protected ScriptSourceScriptFactoryPostProcessor.convertToScriptSource(String beanName, String scriptSourceLocator, cn.taketoday.core.io.ResourceLoader resourceLoader) Convert the given script source locator to a ScriptSource instance.protected ScriptSourceScriptFactoryPostProcessor.getScriptSource(String beanName, String scriptSourceLocator) Obtain a ScriptSource for the given bean, lazily creating it if not cached already.修饰符和类型方法说明protected ObjectStandardScriptFactory.adaptToInterfaces(Object script, ScriptSource scriptSource, Class<?>... actualInterfaces) protected BeanDefinitionScriptFactoryPostProcessor.createScriptedObjectBeanDefinition(BeanDefinition bd, String scriptFactoryBeanName, ScriptSource scriptSource, Class<?>[] interfaces) Create a bean definition for the scripted object, based on the given script definition, extracting the definition data that is relevant for the scripted object (that is, everything but bean class and constructor arguments).StandardScriptEvaluator.evaluate(ScriptSource script) StandardScriptEvaluator.evaluate(ScriptSource script, Map<String, Object> argumentBindings) protected ObjectStandardScriptFactory.evaluateScript(ScriptSource scriptSource) StandardScriptFactory.getScriptedObject(ScriptSource scriptSource, Class<?>... actualInterfaces) Load and parse the script via JSR-223's ScriptEngine.Class<?>StandardScriptFactory.getScriptedObjectType(ScriptSource scriptSource) protected ScriptEngineStandardScriptEvaluator.getScriptEngine(ScriptSource script) Obtain the JSR-223 ScriptEngine to use for the given script.booleanStandardScriptFactory.requiresScriptedObjectRefresh(ScriptSource scriptSource) protected ScriptEngineStandardScriptFactory.retrieveScriptEngine(ScriptSource scriptSource) 参数类型为ScriptSource的cn.taketoday.scripting.support中的构造器限定符构造器说明RefreshableScriptTargetSource(BeanFactory beanFactory, String beanName, ScriptFactory scriptFactory, ScriptSource scriptSource, boolean isFactoryBean) Create a new RefreshableScriptTargetSource.