类 RefreshableScriptTargetSource
java.lang.Object
cn.taketoday.aop.target.AbstractRefreshableTargetSource
cn.taketoday.aop.target.BeanFactoryRefreshableTargetSource
cn.taketoday.scripting.support.RefreshableScriptTargetSource
- 所有已实现的接口:
Refreshable,TargetClassAware,TargetSource
Subclass of
BeanFactoryRefreshableTargetSource that determines whether
a refresh is required through the given ScriptFactory.- 从以下版本开始:
- 4.0
- 作者:
- Rob Harrop, Juergen Hoeller, Mark Fisher
-
字段概要
从类继承的字段 cn.taketoday.aop.target.AbstractRefreshableTargetSource
logger, targetObject -
构造器概要
构造器构造器说明RefreshableScriptTargetSource(BeanFactory beanFactory, String beanName, ScriptFactory scriptFactory, ScriptSource scriptSource, boolean isFactoryBean) Create a new RefreshableScriptTargetSource. -
方法概要
修饰符和类型方法说明protected 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.从类继承的方法 cn.taketoday.aop.target.BeanFactoryRefreshableTargetSource
freshTarget从类继承的方法 cn.taketoday.aop.target.AbstractRefreshableTargetSource
getLastRefreshTime, getRefreshCount, getTarget, getTargetClass, isStatic, refresh, setRefreshCheckDelay从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 cn.taketoday.aop.TargetSource
releaseTarget
-
构造器详细资料
-
RefreshableScriptTargetSource
public RefreshableScriptTargetSource(BeanFactory beanFactory, String beanName, ScriptFactory scriptFactory, ScriptSource scriptSource, boolean isFactoryBean) Create a new RefreshableScriptTargetSource.- 参数:
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 FactoryBean
-
-
方法详细资料
-
requiresRefresh
protected boolean requiresRefresh()Determine whether a refresh is required through calling ScriptFactory'srequiresScriptedObjectRefreshmethod. -
obtainFreshBean
Obtain a fresh target object, retrieving a FactoryBean if necessary.
-