org.ow2.util.auditreport.api
Interface ICurrentInvocationID


public interface ICurrentInvocationID

Interface used to provide the current ID.

Author:
Florent Benoit

Method Summary
 IAuditID getAuditID()
          Gets the current audit ID.
 void init(IAuditID id)
          Initialize a new Audit ID with an optional value.
 IAuditID newInvocation()
          Generate a new ID and return the previously set.
 IAuditID setAuditID(IAuditID auditID)
          Associates the given audit ID to the current thread.
 

Method Detail

setAuditID

IAuditID setAuditID(IAuditID auditID)
Associates the given audit ID to the current thread.

Parameters:
auditID - the ID to associate to the current thread.
Returns:
the previous audit ID.

getAuditID

IAuditID getAuditID()
Gets the current audit ID.

Returns:
the ID to associate to the current thread

init

void init(IAuditID id)
Initialize a new Audit ID with an optional value.

Parameters:
id - the initial value

newInvocation

IAuditID newInvocation()
Generate a new ID and return the previously set.

Returns:
the previous ID.


Copyright © 2007-2012 OW2 Consortium. All Rights Reserved.