org.springframework.aop.target
Class SingletonTargetSource

java.lang.Object
  extended byorg.springframework.aop.target.SingletonTargetSource
All Implemented Interfaces:
TargetSource

public final class SingletonTargetSource
extends java.lang.Object
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.

Version:
$Id: SingletonTargetSource.java,v 1.5 2004/03/18 02:46:13 trisberg Exp $
Author:
Rod Johnson

Constructor Summary
SingletonTargetSource(java.lang.Object target)
           
 
Method Summary
 boolean equals(java.lang.Object other)
          Two invoker interceptors are equal if they have the same target or if the targets or the targets are equal.
 java.lang.Object getTarget()
           
 java.lang.Class getTargetClass()
           
 boolean isStatic()
           
 void releaseTarget(java.lang.Object o)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SingletonTargetSource

public SingletonTargetSource(java.lang.Object target)
Method Detail

getTargetClass

public java.lang.Class getTargetClass()
Specified by:
getTargetClass in interface TargetSource

getTarget

public java.lang.Object getTarget()
Specified by:
getTarget in interface TargetSource

releaseTarget

public void releaseTarget(java.lang.Object o)
Specified by:
releaseTarget in interface TargetSource

toString

public java.lang.String toString()

isStatic

public boolean isStatic()
Specified by:
isStatic in interface TargetSource
See Also:
TargetSource.isStatic()

equals

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



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