Difference between revisions of "JSON Integration Adapter Code Review 1 Changes"
(→JSONMessagePartMapping) |
(→JSONMessageParser) |
||
Line 71: | Line 71: | ||
{| 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 | ||
|- | |- | ||
− | | | + | | InvocationContextAware |
− | + | * Do not implement the invocation context aware interface if not used by the class | |
| | | | ||
|- | |- | ||
− | | | + | | Rename methods XXXNode to XXXPart |
− | |||
| | | | ||
|- | |- | ||
− | | Wrap fail | + | | fail |
− | + | * Wrap fail so that is throws expection right away | |
+ | * Move fail statements from bottom to top, remove else clauses | ||
| | | | ||
|- | |- | ||
− | | | + | | parse() |
− | + | * Override parse method of JSONParser to always return a TransferObject | |
| | | | ||
|- | |- | ||
− | | | + | | parsing primitive values |
− | + | * Use primitive formatter on values that are parsed before storing them | |
| | | | ||
|} | |} | ||
− | |||
===== JSONMessageFormatter ===== | ===== JSONMessageFormatter ===== |
Revision as of 14:46, 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
Task | Status |
---|---|
InvocationContextAware
|
|
Rename methods XXXNode to XXXPart | |
fail
|
|
parse()
|
|
parsing primitive values
|
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. |