Class SingletonMetadataAwareAspectInstanceFactory

java.lang.Object
org.springframework.aop.aspectj.SingletonAspectInstanceFactory
org.springframework.aop.aspectj.annotation.SingletonMetadataAwareAspectInstanceFactory
All Implemented Interfaces:
Serializable, MetadataAwareAspectInstanceFactory, AspectInstanceFactory, org.springframework.core.Ordered

public class SingletonMetadataAwareAspectInstanceFactory extends SingletonAspectInstanceFactory implements MetadataAwareAspectInstanceFactory, Serializable
Implementation of MetadataAwareAspectInstanceFactory that is backed by a specified singleton object, returning the same instance for every SingletonAspectInstanceFactory.getAspectInstance() call.
Since:
2.0
Author:
Rod Johnson, Juergen Hoeller
See Also:
  • Constructor Details

    • SingletonMetadataAwareAspectInstanceFactory

      public SingletonMetadataAwareAspectInstanceFactory(Object aspectInstance, String aspectName)
      Create a new SingletonMetadataAwareAspectInstanceFactory for the given aspect.
      Parameters:
      aspectInstance - the singleton aspect instance
      aspectName - the name of the aspect
  • Method Details