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

java.lang.Object
  extended by com.wewebu.ow.server.ecm.eaop.OwReflectiveCollector
All Implemented Interfaces:
OwJoinPointResultCollector
Direct Known Subclasses:
OwPeerMethodCollector, OwrReturnTypeCollector

public abstract class OwReflectiveCollector
extends Object
implements OwJoinPointResultCollector

A result collector that uses reflection to match an abstract collect method for each advice method call result.

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

Constructor Summary
OwReflectiveCollector()
           
 
Method Summary
 boolean canCollect(Method method_p)
           
 void collect(Method method_p, Object advice_p, Object[] args_p, Object result_p)
           
protected abstract  Method findCollectMethod(Method method_p)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.wewebu.ow.server.ecm.eaop.OwJoinPointResultCollector
getResult
 

Constructor Detail

OwReflectiveCollector

public OwReflectiveCollector()
Method Detail

canCollect

public boolean canCollect(Method method_p)
                   throws OwException
Specified by:
canCollect in interface OwJoinPointResultCollector
Throws:
OwException

findCollectMethod

protected abstract Method findCollectMethod(Method method_p)
                                     throws OwException
Throws:
OwException

collect

public final void collect(Method method_p,
                          Object advice_p,
                          Object[] args_p,
                          Object result_p)
                   throws OwException
Specified by:
collect in interface OwJoinPointResultCollector
Throws:
OwException


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.