Project Wonder 5.0

er.attachment.processors
Interface IERAttachmentProcessorDelegate


public interface IERAttachmentProcessorDelegate

A delegate for ERAttachmentProcessors.

Author:
mschrag

Method Summary
 void attachmentAvailable(ERAttachmentProcessor<?> processor, ERAttachment attachment)
          Called when an attachment is made available.
 void attachmentCreated(ERAttachmentProcessor<?> processor, ERAttachment attachment)
          Called when an attachment is created (if you want to sneak in and modify the instance).
 void attachmentNotAvailable(ERAttachmentProcessor<?> processor, ERAttachment attachment, java.lang.String failureReason)
          Called when an attachment is determined to be unavailable.
 

Method Detail

attachmentCreated

void attachmentCreated(ERAttachmentProcessor<?> processor,
                       ERAttachment attachment)
Called when an attachment is created (if you want to sneak in and modify the instance).

Parameters:
processor - the attachment processor
attachment - the attachment

attachmentAvailable

void attachmentAvailable(ERAttachmentProcessor<?> processor,
                         ERAttachment attachment)
Called when an attachment is made available.

Parameters:
processor - the attachment processor
attachment - the attachment

attachmentNotAvailable

void attachmentNotAvailable(ERAttachmentProcessor<?> processor,
                            ERAttachment attachment,
                            java.lang.String failureReason)
Called when an attachment is determined to be unavailable. This provides the opportunity to clean up the attachment in whatever way is appropriate for your application. Note: There is currently a failure mode with this method where it will not be called if the application crashes. If it is essential that you process all unavailable attachments, you may want to handle that at application startup by selecting all of the available = false attachments and running your custom processing on them.

Parameters:
processor - the attachment processor
attachment - the attachment
failureReason - the reason why the attachment is not available

Last updated: Tue, Feb 21, 2017 • 05:45 PM CET

Copyright © 2002 – 2007 Project Wonder.