The Spring Framework

org.springframework.aop.target
Class EmptyTargetSource

java.lang.Object
  extended by org.springframework.aop.target.EmptyTargetSource
All Implemented Interfaces:
Serializable, TargetSource

public class EmptyTargetSource
extends Object
implements TargetSource, Serializable

Canonical TargetSource when there is no target, and behavior is supplied by interfaces and advisors.

Author:
Rod Johnson
See Also:
Serialized Form

Field Summary
static EmptyTargetSource INSTANCE
          The canonical (Singleton) instance of this EmptyTargetSource.
 
Method Summary
 Object getTarget()
          Always returns null.
 Class getTargetClass()
          Always returns null.
 boolean isStatic()
          Always returns true.
 void releaseTarget(Object target)
          Release the given target object obtained from the TargetSource.getTarget() method.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INSTANCE

public static final EmptyTargetSource INSTANCE
The canonical (Singleton) instance of this EmptyTargetSource.

Method Detail

getTargetClass

public Class getTargetClass()
Always returns null.

Specified by:
getTargetClass in interface TargetSource
Returns:
null

isStatic

public boolean isStatic()
Always returns true.

Specified by:
isStatic in interface TargetSource
Returns:
true
See Also:
TargetSource.getTarget()

getTarget

public Object getTarget()
Always returns null.

Specified by:
getTarget in interface TargetSource
Returns:
null

releaseTarget

public void releaseTarget(Object target)
Description copied from interface: TargetSource
Release the given target object obtained from the TargetSource.getTarget() method.

Specified by:
releaseTarget in interface TargetSource
Parameters:
target - object obtained from a call to TargetSource.getTarget()

toString

public String toString()
Overrides:
toString in class Object

The Spring Framework

Copyright © 2002-2006 The Spring Framework.