org.springframework.aop.target
Class SingletonTargetSource


public final class SingletonTargetSource
implements TargetSource

Implementation of the TargetSource interface that holds a local object. This is the default implementation of TargetSource used by the AOP framework. There is no need to create objects of this class in application code.

Author:
Rod Johnson
Version: $Id: SingletonTargetSource.java,v 1.4 2003/12/11 10:58:12 johnsonr Exp $

Constructor Summary
SingletonTargetSource(Object target)
           

Method Summary
 booleanequals(Object other)
          Two invoker interceptors are equal if they have the same target or if the targets or the targets are equal.
 ObjectgetTarget()
           
 ClassgetTargetClass()
           
 booleanisStatic()
           
 voidreleaseTarget(Object o)
           
 StringtoString()
           

Constructor Detail

SingletonTargetSource

public SingletonTargetSource(Object target)
Method Detail

equals

public boolean equals(Object other)
Two invoker interceptors are equal if they have the same target or if the targets or the targets are equal.

getTarget

public Object getTarget()

getTargetClass

public Class getTargetClass()

isStatic

public boolean isStatic()
See Also:
org.springframework.aop.TargetSource.isStatic()

releaseTarget

public void releaseTarget(Object o)

toString

public String toString()