public class AuditorItem extends Object implements Invoke
| Modifier and Type | Field and Description |
|---|---|
Object |
auditor
The auditor object.
|
Object |
item
This is the object to be audited.
|
| Constructor and Description |
|---|
AuditorItem(Object item,
Object auditor)
This creates the object, to audit the target object's use.
|
public final Object auditor
public final Object item
public AuditorItem(Object item, Object auditor)
item - The object to receive the client invocation. It can be
local, remote, or even a proxy.auditor - The object to receive the calls prior to, and following
the audited item's operation. It can be local, remote, or even a proxy.public Object invoke(String method, Object args) throws Exception
invoke in interface Invokemethod - The internal object's public method being called.args - The arguments to pass to the internal object's method.RemoteException - For a network related failure.NoSuchMethodException - If the method/agruments signature cannot
be matched to the internal object's public method interface.Exception - If the internal object's method rejects the
invocation, or if it has been rejected by the auditor object.Copyright © 2016. All Rights Reserved.