BeanFactoryRefreshableTargetSource that determines whether
a refresh is required through the given ScriptFactory.
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final ScriptFactory | |
| private final ScriptSource |
| Access | Constructor and Description |
|---|---|
| public | RefreshableScriptTargetSource(BeanFactory
the BeanFactory to fetch the scripted bean from beanFactory, String the name of the target bean beanName, ScriptFactory the ScriptFactory to delegate to for determining
whether a refresh is required scriptFactory, ScriptSource the ScriptSource for the script definition scriptSource, boolean whether the target script defines a FactoryBean isFactoryBean)Create a new RefreshableScriptTargetSource. |
| Modifier and Type | Method and Description |
|---|---|
| protected Object | obtainFreshBean(BeanFactory beanFactory, String beanName)
Overrides org. Obtain a fresh target object, retrieving a FactoryBean if necessary. |
| protected boolean | requiresRefresh()
Overrides org. Determine whether a refresh is required through calling
ScriptFactory's |
| isFactoryBean | back to summary |
|---|---|
| private final boolean isFactoryBean | |
| scriptFactory | back to summary |
|---|---|
| private final ScriptFactory scriptFactory | |
| scriptSource | back to summary |
|---|---|
| private final ScriptSource scriptSource | |
| RefreshableScriptTargetSource | back to summary |
|---|---|
| public RefreshableScriptTargetSource(BeanFactory beanFactory, String beanName, ScriptFactory scriptFactory, ScriptSource scriptSource, boolean isFactoryBean) Create a new RefreshableScriptTargetSource.
| |
| obtainFreshBean | back to summary |
|---|---|
| protected Object obtainFreshBean(BeanFactory beanFactory, String beanName) Overrides org. Obtain a fresh target object, retrieving a FactoryBean if necessary.
| |
| requiresRefresh | back to summary |
|---|---|
| protected boolean requiresRefresh() Overrides org. Determine whether a refresh is required through calling
ScriptFactory's
| |