Difference between revisions of "JSON Integration Adapter Code Review 1 Changes"
(→Design Document) |
(→JSONMessagePartMapping) |
||
Line 39: | Line 39: | ||
{| border="1" cellpadding="4" cellspacing="2" style="border: 1px solid black;border-collapse:collapse;" | {| border="1" cellpadding="4" cellspacing="2" style="border: 1px solid black;border-collapse:collapse;" | ||
|- | |- | ||
− | ! | + | ! Task |
− | |||
! Status | ! Status | ||
|- | |- | ||
| Use Hashholder instead of HashSet | | Use Hashholder instead of HashSet | ||
− | |||
| | | | ||
|- | |- | ||
− | | | + | |byte initialization |
− | + | * Remove leading zeros | |
| | | | ||
|- | |- | ||
− | | Remove | + | |StringParser |
− | + | * Remove if not needed | |
| | | | ||
|- | |- | ||
− | | | + | | RootJSONMessagePartMapping |
− | + | * Create class RootJSONMessagePartMapping | |
+ | * Extend JSONMessagePartMapping and move all root settings to this. | ||
| | | | ||
|- | |- | ||
− | | | + | | Composite Message Part modes |
− | + | * Rename root mode to mode | |
+ | * Allow all composite message parts to have a mode | ||
| | | | ||
|- | |- | ||
− | | | + | | m_sFormat |
− | + | * Remove if not needed | |
| | | | ||
|} | |} | ||
− | |||
===== JSONMessageParser ===== | ===== JSONMessageParser ===== |
Revision as of 14:20, 10 August 2011
Contents
General
Tasks | Status |
---|---|
Exception
|
|
Documentation
|
|
Code Style
|
Design Document
Task | Status |
---|---|
Update Design Proposal Document
|
JSONMessagePartMapping
Task | Status |
---|---|
Use Hashholder instead of HashSet | |
byte initialization
|
|
StringParser
|
|
RootJSONMessagePartMapping
|
|
Composite Message Part modes
|
|
m_sFormat
|
JSONMessageParser
Issue | Description | Status |
---|---|---|
Remove/Use InvocationContextAware | Do not implement the invocation context aware interface if not used by the class. Or, use the interface for formatting of primitives. | |
Name methods XXXPart, not XXXNode | Rename methods to be XXXPart, for example as writeCompositeMessagePart, instead of writeCompositeMessageNode. | |
Wrap fail | Wrap all instances of fail with IntegrationException. | |
Override JSONParse | Override parse method of JSONParser in the JSONMessageParser class. Do this to avoid changing JSONParser. | |
Use primitive formatter when reading. | When reading information in from a stream in the formatter, use primitive formatter to determine the correct format of a primitive. |
JSONMessageFormatter
Issue | Description | Status |
---|---|---|
Format primitive values before outputting to writers. | Use the StringFormatter to format primitive values before outputting to the writer. For example, timestamps must be formatted before outputting to the writer. | |
Pass enumerations into formatMessageRoot | Do not use member/class variables for storing information unless absolutely necessary. Prefer to pass parameters around so that objects do not grow large as the parser/formatter iterates. |