public class RefreshableScriptTargetSource
extends org.springframework.aop.target.dynamic.BeanFactoryRefreshableTargetSource
BeanFactoryRefreshableTargetSource that determines whether
a refresh is required through the given ScriptFactory.| 构造器和说明 |
|---|
RefreshableScriptTargetSource(org.springframework.beans.factory.BeanFactory beanFactory,
String beanName,
ScriptFactory scriptFactory,
ScriptSource scriptSource,
boolean isFactoryBean)
Create a new RefreshableScriptTargetSource.
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected Object |
obtainFreshBean(org.springframework.beans.factory.BeanFactory beanFactory,
String beanName)
Obtain a fresh target object, retrieving a FactoryBean if necessary.
|
protected boolean |
requiresRefresh()
Determine whether a refresh is required through calling
ScriptFactory's
requiresScriptedObjectRefresh method. |
public RefreshableScriptTargetSource(org.springframework.beans.factory.BeanFactory beanFactory,
String beanName,
ScriptFactory scriptFactory,
ScriptSource scriptSource,
boolean isFactoryBean)
beanFactory - the BeanFactory to fetch the scripted bean frombeanName - the name of the target beanscriptFactory - the ScriptFactory to delegate to for determining
whether a refresh is requiredscriptSource - the ScriptSource for the script definitionisFactoryBean - whether the target script defines a FactoryBeanprotected boolean requiresRefresh()
requiresScriptedObjectRefresh method.requiresRefresh 在类中 org.springframework.aop.target.dynamic.AbstractRefreshableTargetSourceScriptFactory.requiresScriptedObjectRefresh(ScriptSource)