org.springframework.scripting.support

## 类 RefreshableScriptTargetSource

- java.lang.Object
- - org.springframework.aop.target.dynamic.AbstractRefreshableTargetSource
  - - org.springframework.aop.target.dynamic.BeanFactoryRefreshableTargetSource
    - - org.springframework.scripting.support.RefreshableScriptTargetSource

- 所有已实现的接口:
    org.springframework.aop.target.dynamic.Refreshable, org.springframework.aop.TargetClassAware, org.springframework.aop.TargetSource

      public class RefreshableScriptTargetSource
      extends org.springframework.aop.target.dynamic.BeanFactoryRefreshableTargetSource

  Subclass of `BeanFactoryRefreshableTargetSource` that determines whether a refresh is required through the given `ScriptFactory`.
  从以下版本开始:
    2.0
  作者:
    Rob Harrop, Juergen Hoeller, Mark Fisher

- - ### 字段概要

    - ### 从类继承的字段 org.springframework.aop.target.dynamic.AbstractRefreshableTargetSource

      `logger, targetObject`

  - ### 构造器概要

    构造器
    构造器和说明
    `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.

    - ### 从类继承的方法 org.springframework.aop.target.dynamic.BeanFactoryRefreshableTargetSource

      `freshTarget`

    - ### 从类继承的方法 org.springframework.aop.target.dynamic.AbstractRefreshableTargetSource

      `getLastRefreshTime, getRefreshCount, getTarget, getTargetClass, isStatic, refresh, releaseTarget, setRefreshCheckDelay`

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 构造器详细资料

    - #### RefreshableScriptTargetSource

          public RefreshableScriptTargetSource(org.springframework.beans.factory.BeanFactory beanFactory,
                                               String beanName,
                                               ScriptFactory scriptFactory,
                                               ScriptSource scriptSource,
                                               boolean isFactoryBean)

      Create a new RefreshableScriptTargetSource.
      参数:
        `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

  - ### 方法详细资料

    - #### requiresRefresh

          protected boolean requiresRefresh()

      Determine whether a refresh is required through calling ScriptFactory's `requiresScriptedObjectRefresh` method.
      覆盖:
        `requiresRefresh` 在类中 `org.springframework.aop.target.dynamic.AbstractRefreshableTargetSource`
      另请参阅:
        `ScriptFactory.requiresScriptedObjectRefresh(ScriptSource)`

    - #### obtainFreshBean

          protected Object obtainFreshBean(org.springframework.beans.factory.BeanFactory beanFactory,
                                           String beanName)

      Obtain a fresh target object, retrieving a FactoryBean if necessary.
      覆盖:
        `obtainFreshBean` 在类中 `org.springframework.aop.target.dynamic.BeanFactoryRefreshableTargetSource`