org.springframework.aop
Interface TargetSource

All Known Implementing Classes:
AbstractPrototypeTargetSource, HotSwappableTargetSource, SingletonTargetSource

public interface TargetSource

A TargetSource is used to obtain the current "target" of an AOP invocation, which will be invoked via reflection if no around advice chooses to end the interceptor chain itself.
If a TargetSource is "static", it will always return the same target, allowing optimizations in the AOP framework. Dynamic target sources can support pooling, hot swapping etc.
Application developers don't usually need to work with TargetSources directly: this is an AOP framework interface.

Version:
$Id: TargetSource.java,v 1.4 2004/03/18 02:46:07 trisberg Exp $
Author:
Rod Johnson

Method Summary
 java.lang.Object getTarget()
           
 java.lang.Class getTargetClass()
           
 boolean isStatic()
           
 void releaseTarget(java.lang.Object target)
           
 

Method Detail

getTargetClass

public java.lang.Class getTargetClass()

isStatic

public boolean isStatic()

getTarget

public java.lang.Object getTarget()
                           throws java.lang.Exception
Throws:
java.lang.Exception

releaseTarget

public void releaseTarget(java.lang.Object target)
                   throws java.lang.Exception
Throws:
java.lang.Exception


Copyright (C) 2003-2004 The Spring Framework Project.