Class SingletonTargetSource

java.lang.Object
org.springframework.aop.target.SingletonTargetSource
All Implemented Interfaces:
Serializable, TargetClassAware, TargetSource

public class SingletonTargetSource extends Object implements TargetSource, Serializable
Implementation of the 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.

Author:
Rod Johnson, Juergen Hoeller
See Also:
  • Constructor Details

    • SingletonTargetSource

      public SingletonTargetSource(Object target)
      Create a new SingletonTargetSource for the given target.
      Parameters:
      target - the target object
  • Method Details