Top Description Fields Methods
org.springframework.aop.aspectj

public Interface AspectInstanceFactory

extends Ordered
Known Direct Subinterfaces
org.springframework.aop.aspectj.annotation.MetadataAwareAspectInstanceFactory
Known Direct Implementers
org.springframework.aop.aspectj.SimpleAspectInstanceFactory, org.springframework.aop.aspectj.SingletonAspectInstanceFactory, org.springframework.aop.config.SimpleBeanFactoryAwareAspectInstanceFactory
Imports
org.springframework.core.Ordered, org.springframework.lang.Nullable

Interface implemented to provide an instance of an AspectJ aspect. Decouples from Spring's bean factory.

Extends the org.springframework.core.Ordered interface to express an order value for the underlying aspect in a chain.

Authors
Rod Johnson, Juergen Hoeller
Since
2.0
See Also
org.springframework.beans.factory.BeanFactory#getBean

Field Summary

Inherited from org.springframework.core.Ordered:
HIGHEST_PRECEDENCELOWEST_PRECEDENCE

Method Summary

Modifier and TypeMethod and Description
public ClassLoader

Returns:

the aspect class loader (or null for the bootstrap loader)
getAspectClassLoader
()

Expose the aspect class loader that this factory uses.

public Object

Returns:

the aspect instance (never null)
getAspectInstance
()

Create an instance of this factory's aspect.

Inherited from org.springframework.core.Ordered:
getOrder

Method Detail

getAspectClassLoaderback to summary
public ClassLoader getAspectClassLoader()

Expose the aspect class loader that this factory uses.

Returns:ClassLoader

the aspect class loader (or null for the bootstrap loader)

Annotations
@Nullable
See Also
org.springframework.util.ClassUtils#getDefaultClassLoader()
getAspectInstanceback to summary
public Object getAspectInstance()

Create an instance of this factory's aspect.

Returns:Object

the aspect instance (never null)