public class AJProxyTrait extends Object implements InvocationHandler
Proxy
InvocationHandler
to be used in conjuction with
asprctJ extended traits.Extensible
object method
having the same signature within an AJExtender.ExtensionBypass
context.Modifier and Type | Method and Description |
---|---|
static <M extends Trait> |
create(Object extensibleInterface,
Class<M> traitAPI)
|
Object |
invoke(Object proxy,
Method method,
Object[] args) |
String |
toString() |
public static <M extends Trait> M create(Object extensibleInterface, Class<M> traitAPI)
extensible
- the Extensible
object that defines the given
Trait
traitAPI
- the trait interface part that the given
Extensible
object definesProxy
object for the given trait API interface with an
AJProxyTrait
attached. All method calls performed on the
returned proxy will be delegated to a given Extensible
object method having the same signature within an
AJExtender.ExtensionBypass
context.public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
invoke
in interface InvocationHandler
Throwable
Copyright © 2005–2017 Alfresco Software. All rights reserved.