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

EmptyTargetSource

open class EmptyTargetSource : TargetSource, Serializable

Canonical TargetSource when there is no target (or just the target class known), and behavior is supplied by interfaces and advisors only.

Author
Rod Johnson

Author
Juergen Hoeller

Properties

INSTANCE

static val INSTANCE: EmptyTargetSource

The canonical (Singleton) instance of this EmptyTargetSource.

Functions

equals

open fun equals(other: Any?): Boolean

forClass

open static fun forClass(targetClass: Class<*>): EmptyTargetSource
open static fun forClass(targetClass: Class<*>, isStatic: Boolean): EmptyTargetSource

Return an EmptyTargetSource for the given target Class.

getTarget

open fun getTarget(): Any

Always returns null.

getTargetClass

open fun getTargetClass(): Class<*>

Always returns the specified target Class, or null if none.

hashCode

open fun hashCode(): Int

isStatic

open fun isStatic(): Boolean

Always returns true.

releaseTarget

open fun releaseTarget(target: Any): Unit

Nothing to release.

toString

open fun toString(): String