Add String to AttributeList converter #194
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add a String to javax.management.AttributeList parser which can parse a sring and construct the appropriate AttributeList object.
The string must be in following format:
attribute-name1=attribute-type1:attribute-value1,attribute-name2=attribute-type2:attribute-value2...
The attribute types could be as following:
I: int
L: long
F: float
D: double
B: boolean
T: short
S: String
Y: byte
C: char
If there're sepcial characters within the attribute value, the following escape rules applied:
1.for "," and "=",put three PATH_ESCAPE characters before it
2.for ":",put four PATH_ESCAPE characters before it
Please focus on the agent/core/src/main/java/org/jolokia/converter/object/StringToObjectConverter.java file and ignore the other websphere specific files.
Thanks,