com.wewebu.ow.server.ecm.eaop
Class OwAdvicedProxy

java.lang.Object
  extended by com.wewebu.ow.server.ecm.eaop.OwAdvicedProxy
All Implemented Interfaces:
InvocationHandler

public class OwAdvicedProxy
extends Object
implements InvocationHandler

A Proxy InvocationHandler and factory ( see newAdvicedProxy(Object, Class, Object...)) to be used in advice based contexts. It ensures isolated advice delegate calls to given objects.

Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.

For licensing information read the license.txt file or
go to: http://wiki.alfresco.com

Since:
4.0.0.0

Method Summary
 Object invoke(Object proxy, Method method, Object[] args)
           
static
<I> I
newAdvicedProxy(Object object_p, Class<I> interface_p, Object... advices_p)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newAdvicedProxy

public static <I> I newAdvicedProxy(Object object_p,
                                    Class<I> interface_p,
                                    Object... advices_p)
                         throws OwInvalidOperationException
Parameters:
object_p -
interface_p -
advices_p -
Returns:
a Proxy for the given object that will be called in isolated adviced contexts
Throws:
OwInvalidOperationException

invoke

public Object invoke(Object proxy,
                     Method method,
                     Object[] args)
              throws Throwable
Specified by:
invoke in interface InvocationHandler
Throws:
Throwable


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.