|
BEA Systems, Inc. | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.bea.rfid.edge.toolkit.workflow.PortImpl
com.bea.rfid.edge.toolkit.workflow.AbstractWorkflowModulePlugin.OneWayInputPortImpl
public abstract class AbstractWorkflowModulePlugin.OneWayInputPortImpl
Inner class implementation of OneWayInputPort.
Edge flow module ports that want to make use of edge server event handling mechanism
may do that easily by extending this class and implementing the abstract method
processMessage.
| Constructor Summary | |
|---|---|
AbstractWorkflowModulePlugin.OneWayInputPortImpl(Port port)
Constructor that just takes in a Port and constructs
OneWayInputPort using it. |
|
AbstractWorkflowModulePlugin.OneWayInputPortImpl(String name,
String displayName,
PortType portType)
Constructor. |
|
| Method Summary | |
|---|---|
protected void |
log(Level severity,
String errorMsg)
Utility method to log a message from an input port. |
protected void |
log(Level severity,
String errorMsg,
Throwable thrown)
Utility method to log an exception from an input port. |
protected abstract void |
processMessage(Object msg)
The method that does the actual work of processing the message. |
void |
receiveMessage(Object msg)
Interface method implementation. |
protected void |
sendErrorOutput(Level severity,
String errorMsg,
Throwable exc)
Utility method to create an ErrorOutput object for an exception within a port and send it to error destinations. |
| Methods inherited from class com.bea.rfid.edge.toolkit.workflow.PortImpl |
|---|
getDisplayName, getName, getPortType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.bea.rfid.edge.api.workflow.Port |
|---|
getDisplayName, getName, getPortType |
| Constructor Detail |
|---|
public AbstractWorkflowModulePlugin.OneWayInputPortImpl(String name,
String displayName,
PortType portType)
name - Name of the port.displayName - Display name of the port.portType - The PortType of the port.public AbstractWorkflowModulePlugin.OneWayInputPortImpl(Port port)
Port and constructs
OneWayInputPort using it.
port - The Port whose details will be used to create the OneWayInputPort.| Method Detail |
|---|
public void receiveMessage(Object msg)
processMessage using the event queue mechanism. The actual processing
happens in processMessage, which is implementation
specific. This method also takes care of exceptions during message processing
by sending the exception details to the error output port.
receiveMessage in interface OneWayInputPortmsg - Input message to the port.
protected abstract void processMessage(Object msg)
throws Exception
receiveMessage using the event handling mechanism.
msg - The input message to the port.
Exception - If an error occurs while processing the message.
Since the exceptions
that could happen are specific to the modules, we are allowing generic
exception here. However, this means that if a port wants to treat certain
exceptions differently (not just send error details on error output), it
should catch it explicitly.
protected void log(Level severity,
String errorMsg)
severity - The severity level of the error.errorMsg - The error message.
protected void log(Level severity,
String errorMsg,
Throwable thrown)
severity - The severity level of the error.errorMsg - The error message.thrown - The exception that is to be logged.
protected void sendErrorOutput(Level severity,
String errorMsg,
Throwable exc)
severity - The severity level to use on the error output.errorMsg - The error message.exc - The exception that is the cause of the error output.
|
Documentation is available at ${DOCSWEBROOT} Copyright 2007 BEA Systems Inc. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||