public final class AuditEvent extends EventObject
I'm not very satisfied about the design of this event since there are optional methods that will return null in most of the case. This will need some work to clean it up especially if we want to introduce a more sequential reporting action rather than a packet error reporting. This will allow for example to follow the process quickly in an interface or a servlet (yep, that's cool to run a check via a web interface in a source repository ;-)
AuditListener
,
直列化された形式source
コンストラクタと説明 |
---|
AuditEvent(Object aSource)
Creates a new instance.
|
AuditEvent(Object aSrc,
String aFileName)
Creates a new
AuditEvent instance. |
AuditEvent(Object aSrc,
String aFileName,
LocalizedMessage aMessage)
Creates a new
AuditEvent instance. |
修飾子とタイプ | メソッドと説明 |
---|---|
int |
getColumn() |
String |
getFileName() |
int |
getLine()
return the line number on the source file where the event occurred.
|
LocalizedMessage |
getLocalizedMessage() |
String |
getMessage()
return the message associated to the event.
|
String |
getModuleId() |
int |
getScore() |
SeverityLevel |
getSeverityLevel() |
String |
getSourceName() |
getSource, toString
public AuditEvent(Object aSource)
aSource
- the object that created the eventpublic AuditEvent(Object aSrc, String aFileName)
AuditEvent
instance.aSrc
- source of the eventaFileName
- file associated with the eventpublic AuditEvent(Object aSrc, String aFileName, LocalizedMessage aMessage)
AuditEvent
instance.aSrc
- source of the eventaFileName
- file associated with the eventaMessage
- the actual messagepublic String getFileName()
public int getLine()
public String getMessage()
public int getColumn()
public SeverityLevel getSeverityLevel()
public String getModuleId()
public String getSourceName()
public LocalizedMessage getLocalizedMessage()
public int getScore()
Copyright © 2001-2013. All Rights Reserved.