public abstract class

AopUtils

extends Object
java.lang.Object
   ↳ com.atlassian.confluence.util.AopUtils

Class Overview

Utilities for aspect oriented programming

Summary

Public Constructors
AopUtils()
Public Methods
static Object adaptInterface(Object target, Class newInterface, Class oldInterface, Object delegate)
Adapt an interface of an object via a delegate
static Object createAdvisedProxy(Object target, Advisor advisor, Class advisedInterface)
Convenience method for creating an advised proxy
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public AopUtils ()

Public Methods

public static Object adaptInterface (Object target, Class newInterface, Class oldInterface, Object delegate)

Adapt an interface of an object via a delegate

Parameters
target Object to adapt
newInterface The new interface to implement
oldInterface The old interface to remove
delegate A delegate object - this object will intercept all calls made on the newInterface of the target object
Returns
  • The adapted object

public static Object createAdvisedProxy (Object target, Advisor advisor, Class advisedInterface)

Convenience method for creating an advised proxy

Parameters
target Object to advise
advisor Advisor to provide advice to method calls for the proxied object
advisedInterface Interface to advise
Returns
  • Proxied object