spring-framework / org.springframework.aop.target.dynamic

Package org.springframework.aop.target.dynamic

Types

AbstractRefreshableTargetSource

abstract class AbstractRefreshableTargetSource : TargetSource, Refreshable

Abstract org.springframework.aop.TargetSource implementation that wraps a refreshable target object. Subclasses can determine whether a refresh is required, and need to provide fresh target objects.

Implements the Refreshable interface in order to allow for explicit control over the refresh status.

BeanFactoryRefreshableTargetSource

open class BeanFactoryRefreshableTargetSource : AbstractRefreshableTargetSource

Refreshable TargetSource that fetches fresh target beans from a BeanFactory.

Can be subclassed to override requiresRefresh() to suppress unnecessary refreshes. By default, a refresh will be performed every time the "refreshCheckDelay" has elapsed.