Class RefreshableScriptTargetSource
java.lang.Object
org.springframework.aop.target.dynamic.AbstractRefreshableTargetSource
org.springframework.aop.target.dynamic.BeanFactoryRefreshableTargetSource
org.springframework.scripting.support.RefreshableScriptTargetSource
- All Implemented Interfaces:
- Refreshable,- TargetClassAware,- TargetSource
Subclass of 
BeanFactoryRefreshableTargetSource that determines whether
 a refresh is required through the given ScriptFactory.- Since:
- 2.0
- Author:
- Rob Harrop, Juergen Hoeller, Mark Fisher
- 
Field SummaryFields inherited from class org.springframework.aop.target.dynamic.AbstractRefreshableTargetSourcelogger, targetObject
- 
Constructor SummaryConstructorsConstructorDescriptionRefreshableScriptTargetSource(BeanFactory beanFactory, String beanName, ScriptFactory scriptFactory, ScriptSource scriptSource, boolean isFactoryBean) Create a new RefreshableScriptTargetSource.
- 
Method SummaryModifier and TypeMethodDescriptionprotected ObjectobtainFreshBean(BeanFactory beanFactory, String beanName) Obtain a fresh target object, retrieving a FactoryBean if necessary.protected booleanDetermine whether a refresh is required through calling ScriptFactory'srequiresScriptedObjectRefreshmethod.Methods inherited from class org.springframework.aop.target.dynamic.BeanFactoryRefreshableTargetSourcefreshTargetMethods inherited from class org.springframework.aop.target.dynamic.AbstractRefreshableTargetSourcegetLastRefreshTime, getRefreshCount, getTarget, getTargetClass, refresh, setRefreshCheckDelayMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.aop.TargetSourceisStatic, releaseTarget
- 
Constructor Details- 
RefreshableScriptTargetSourcepublic RefreshableScriptTargetSource(BeanFactory beanFactory, String beanName, ScriptFactory scriptFactory, ScriptSource scriptSource, boolean isFactoryBean) Create a new RefreshableScriptTargetSource.- Parameters:
- beanFactory- the BeanFactory to fetch the scripted bean from
- beanName- the name of the target bean
- scriptFactory- the ScriptFactory to delegate to for determining whether a refresh is required
- scriptSource- the ScriptSource for the script definition
- isFactoryBean- whether the target script defines a FactoryBean
 
 
- 
- 
Method Details- 
requiresRefreshprotected boolean requiresRefresh()Determine whether a refresh is required through calling ScriptFactory'srequiresScriptedObjectRefreshmethod.- Overrides:
- requiresRefreshin class- AbstractRefreshableTargetSource
- Returns:
- whether a refresh is required
- See Also:
 
- 
obtainFreshBeanObtain a fresh target object, retrieving a FactoryBean if necessary.- Overrides:
- obtainFreshBeanin class- BeanFactoryRefreshableTargetSource
- See Also:
 
 
-