public class

RefreshableScriptTargetSource

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

Class Overview

Subclass of BeanFactoryRefreshableTargetSource that determines whether a refresh is required through the given ScriptFactory.

Summary

[Expand]
Inherited Fields
From class org.springframework.aop.target.dynamic.AbstractRefreshableTargetSource
Public Constructors
RefreshableScriptTargetSource(BeanFactory beanFactory, String beanName, ScriptFactory scriptFactory, ScriptSource scriptSource, boolean isFactoryBean)
Create a new RefreshableScriptTargetSource.
Protected Methods
Object obtainFreshBean(BeanFactory beanFactory, String beanName)
Obtain a fresh target object, retrieving a FactoryBean if necessary.
boolean requiresRefresh()
Determine whether a refresh is required through calling ScriptFactory's requiresScriptedObjectRefresh method.
[Expand]
Inherited Methods
From class org.springframework.aop.target.dynamic.BeanFactoryRefreshableTargetSource
From class org.springframework.aop.target.dynamic.AbstractRefreshableTargetSource
From class java.lang.Object
From interface org.springframework.aop.TargetClassAware
From interface org.springframework.aop.TargetSource
From interface org.springframework.aop.target.dynamic.Refreshable

Public Constructors

public 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

Protected Methods

protected Object obtainFreshBean (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.

Returns
  • whether a refresh is required