Save This Page
Home » spring-framework-2.5.5-with-dependencies » org.springframework » aop » target » [javadoc | source]
org.springframework.aop.target
public class: SingletonTargetSource [javadoc | source]
java.lang.Object
   org.springframework.aop.target.SingletonTargetSource

All Implemented Interfaces:
    TargetSource, Serializable

Implementation of the org.springframework.aop.TargetSource interface that holds a given object. This is the default implementation of the TargetSource interface, as used by the Spring AOP framework. There is usually no need to create objects of this class in application code.

This class is serializable. However, the actual serializability of a SingletonTargetSource will depend on whether the target is serializable.

Constructor:
 public SingletonTargetSource(Object target) 
    Create a new SingletonTargetSource for the given target.
    Parameters:
    target - the target object
Method from org.springframework.aop.target.SingletonTargetSource Summary:
equals,   getTarget,   getTargetClass,   hashCode,   isStatic,   releaseTarget,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.springframework.aop.target.SingletonTargetSource Detail:
 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.
 public Object getTarget() 
 public Class getTargetClass() 
 public int hashCode() 
    SingletonTargetSource uses the hash code of the target object.
 public boolean isStatic() 
 public  void releaseTarget(Object target) 
 public String toString()