com.metamatrix.platform.security.audit.destination
Class ConsoleAuditDestination

java.lang.Object
  extended by com.metamatrix.platform.security.audit.destination.AbstractAuditDestination
      extended by com.metamatrix.platform.security.audit.destination.ConsoleAuditDestination
All Implemented Interfaces:
AuditDestination

public class ConsoleAuditDestination
extends AbstractAuditDestination

This is the default logging destination - System.out.


Field Summary
protected static java.lang.String DEFAULT_CONSOLE_AUDIT_FORMAT_PROPERTY_NAME
           
static java.lang.String MESSAGE_FORMAT_PROPERTY_NAME
          The name of the property that contains the name of the LogMessageFormat class that is used to format messages sent to the console.
 
Fields inherited from class com.metamatrix.platform.security.audit.destination.AbstractAuditDestination
DEFAULT_LOG_FORMAT_PROPERTY_NAME
 
Fields inherited from interface com.metamatrix.platform.security.audit.destination.AuditDestination
PROPERTY_PREFIX
 
Constructor Summary
ConsoleAuditDestination()
          Construct a ConsoleDestination.
 
Method Summary
protected  java.lang.String getDefaultFormatClassName()
           
 java.lang.String getDescription()
          Return description
 java.util.List getPropertyNames()
          Get names of all properties used for this destination.
 void initialize(java.util.Properties props)
          Initialize this destination with the specified properties.
 void record(AuditMessage message)
          Print to System.out.
 void shutdown()
          Shutdown - nothing to do.
 
Methods inherited from class com.metamatrix.platform.security.audit.destination.AbstractAuditDestination
getFormat, setFormat
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_CONSOLE_AUDIT_FORMAT_PROPERTY_NAME

protected static final java.lang.String DEFAULT_CONSOLE_AUDIT_FORMAT_PROPERTY_NAME

MESSAGE_FORMAT_PROPERTY_NAME

public static final java.lang.String MESSAGE_FORMAT_PROPERTY_NAME
The name of the property that contains the name of the LogMessageFormat class that is used to format messages sent to the console.

See Also:
Constant Field Values
Constructor Detail

ConsoleAuditDestination

public ConsoleAuditDestination()
Construct a ConsoleDestination.

Method Detail

getDescription

public java.lang.String getDescription()
Return description

Returns:
Description

initialize

public void initialize(java.util.Properties props)
                throws AuditDestinationInitFailedException
Initialize this destination with the specified properties.

Specified by:
initialize in interface AuditDestination
Overrides:
initialize in class AbstractAuditDestination
Parameters:
props - the properties that this destination should use to initialize itself.
Throws:
LogDestinationInitFailedException - if there was an error during initialization.
AuditDestinationInitFailedException - if there was an error during initialization.

getPropertyNames

public java.util.List getPropertyNames()
Get names of all properties used for this destination.


record

public void record(AuditMessage message)
Print to System.out.

Parameters:
message - Message to print

shutdown

public void shutdown()
Shutdown - nothing to do.


getDefaultFormatClassName

protected java.lang.String getDefaultFormatClassName()
Overrides:
getDefaultFormatClassName in class AbstractAuditDestination


Copyright © 2009. All Rights Reserved.