org.ow2.easybeans.component.audit
Class AuditComponent

java.lang.Object
  extended by org.ow2.easybeans.component.audit.AuditComponent
All Implemented Interfaces:
EZBAuditComponent, EZBComponent

public class AuditComponent
extends java.lang.Object
implements EZBAuditComponent

The audit component for Easybeans.

Author:
Mathieu ANCELIN

Constructor Summary
AuditComponent()
          Default constructor.
 
Method Summary
 org.ow2.util.auditreport.api.ICurrentInvocationID getCurrentInvocationID()
           
 void init()
          Init the component.
 void registerJ2EEManagedObject(EZBJ2EEManagedObject object)
          Add an audited bean to the audit system.
 void setEventComponent(EZBEventComponent eventComponent)
          Set the event component.
 void start()
          Start the component.
 void stop()
          Stop the component.
 void unregisterJ2EEManagedObject(EZBJ2EEManagedObject object)
          Remove an audited bean from the audit system.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuditComponent

public AuditComponent()
Default constructor.

Method Detail

init

public void init()
          throws EZBComponentException
Init the component.

Specified by:
init in interface EZBComponent
Throws:
EZBComponentException - exception.

start

public void start()
           throws EZBComponentException
Start the component.

Specified by:
start in interface EZBComponent
Throws:
EZBComponentException - exception.

stop

public void stop()
          throws EZBComponentException
Stop the component.

Specified by:
stop in interface EZBComponent
Throws:
EZBComponentException - exception.

setEventComponent

public void setEventComponent(EZBEventComponent eventComponent)
Set the event component.

Specified by:
setEventComponent in interface EZBAuditComponent
Parameters:
eventComponent - The event component.

registerJ2EEManagedObject

public void registerJ2EEManagedObject(EZBJ2EEManagedObject object)
Add an audited bean to the audit system.

Specified by:
registerJ2EEManagedObject in interface EZBAuditComponent
Parameters:
object - the audited bean.

unregisterJ2EEManagedObject

public void unregisterJ2EEManagedObject(EZBJ2EEManagedObject object)
Remove an audited bean from the audit system.

Specified by:
unregisterJ2EEManagedObject in interface EZBAuditComponent
Parameters:
object - the audited bean.

getCurrentInvocationID

public org.ow2.util.auditreport.api.ICurrentInvocationID getCurrentInvocationID()
Specified by:
getCurrentInvocationID in interface EZBAuditComponent
Returns:
the invocation current ID.


Copyright © 2006-2010 OW2 Consortium. All Rights Reserved.