Project Wonder 2.0

er.corebusinesslogic
Class ERCMailMessageAppender

java.lang.Object
  extended byorg.apache.log4j.AppenderSkeleton
      extended byer.extensions.ERXMailAppender
          extended byer.corebusinesslogic.ERCMailMessageAppender
All Implemented Interfaces:
Appender, OptionHandler

public class ERCMailMessageAppender
extends ERXMailAppender

Basic log4j Mail Message Appender
Used for logging log events to a database that will eventually be emailed out. Logs events using ERCMailDelivery.

See Also:
for more info.

Field Summary
protected static ERXEditingContextDelegate _delegate
          caches the no-op editing context delegate
protected  EOEditingContext editingContext
          holds the editing context
 
Fields inherited from class er.extensions.ERXMailAppender
bccAddresses, ccAddresses, computedFromAddress, conditionsChecked, domainName, exceptionPageName, formatAsError, fromAddress, hostName, qualifier, realQualifier, replyTo, title, titleIncludesApplicationName, titleIncludesPriorityLevel, toAddresses
 
Fields inherited from class org.apache.log4j.AppenderSkeleton
closed, errorHandler, headFilter, layout, name, tailFilter, threshold
 
Constructor Summary
ERCMailMessageAppender()
          Public constructor.
 
Method Summary
 NSMutableDictionary composeExceptionPageDictionary(LoggingEvent event)
          Overridden to add the Actor into the dictionary.
 EOEditingContext editingContext()
          Gets the editing context to use for creating mail messages in.
 String getExceptionPageName()
          Overridden because we want to use our own page
protected  boolean hasCooperatingObjectStores()
          We want the ability to warn if we are going to be creating the first cooperating object store.
 void subAppend(LoggingEvent event)
          Where the actual logging event is processed and a mail message is generated.
 
Methods inherited from class er.extensions.ERXMailAppender
append, bccAddresses, bccAddressesAsArray, ccAddresses, ccAddressesAsArray, checkConditions, close, composeMessage, composeTitle, computedFromAddress, formatAsError, formatAsErrorAsBoolean, getDomainName, getFromAddress, getHostName, getQualifier, getReplyTo, getTitle, getToAddresses, realQualifier, requiresLayout, setBccAddresses, setCcAddresses, setDomainName, setExceptionPageName, setFormatAsError, setFromAddress, setHostName, setQualifier, setReplyTo, setTitle, setTitleIncludesApplicationName, setTitleIncludesPriorityLevel, setToAddresses, titleIncludesApplicationName, titleIncludesApplicationNameAsBoolean, titleIncludesPriorityLevel, titleIncludesPriorityLevelAsBoolean, toAddressesAsArray
 
Methods inherited from class org.apache.log4j.AppenderSkeleton
activateOptions, addFilter, clearFilters, doAppend, finalize, getErrorHandler, getFilter, getFirstFilter, getLayout, getName, getThreshold, isAsSevereAsThreshold, setErrorHandler, setLayout, setName, setThreshold
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_delegate

protected static ERXEditingContextDelegate _delegate
caches the no-op editing context delegate


editingContext

protected EOEditingContext editingContext
holds the editing context

Constructor Detail

ERCMailMessageAppender

public ERCMailMessageAppender()
Public constructor.

Method Detail

hasCooperatingObjectStores

protected boolean hasCooperatingObjectStores()
We want the ability to warn if we are going to be creating the first cooperating object store. Not a bad thing just a condition that might cause a strange EOF issue if it occurs.

Returns:
if the default object store coordinator has any cooperating object stores.

editingContext

public EOEditingContext editingContext()
Gets the editing context to use for creating mail messages in.

Returns:
editing context with a no-op delegate set.

getExceptionPageName

public String getExceptionPageName()
Overridden because we want to use our own page

Overrides:
getExceptionPageName in class ERXMailAppender
Returns:
exception page name.

composeExceptionPageDictionary

public NSMutableDictionary composeExceptionPageDictionary(LoggingEvent event)
Overridden to add the Actor into the dictionary.

Overrides:
composeExceptionPageDictionary in class ERXMailAppender
Parameters:
event - logging event

subAppend

public void subAppend(LoggingEvent event)
Where the actual logging event is processed and a mail message is generated.

Overrides:
subAppend in class ERXMailAppender
Parameters:
event - logging event

Last updated: Do, Dez 9, 2004 • 12:46 PM CET

Copyright © 2002 – 2004 Project Wonder.