public final class MessageParserFactory extends Object
This class creates a specified parser object. But only one object of this kind. With this technique it minimizes the object creation process and affect the execution speed, too.
| Modifier and Type | Method and Description |
|---|---|
static AbstractMessageParser |
getParser(ProtocolDataUnit protocolDataUnit,
OperationCode operationCode)
Returns the parser object with the given operation code.
|
public static final AbstractMessageParser getParser(ProtocolDataUnit protocolDataUnit, OperationCode operationCode)
protocolDataUnit - The reference ProtocolDataUnit instance, which
contains this AbstractMessageParser object.operationCode - The operation code of the requested AbstractMessageParser.AbstractMessageParser.OperationCodeCopyright © 2013 University of Konstanz, Distributed Systems Group. All Rights Reserved.