New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WFCORE-1841 lazy subsystem parser support #1864
Conversation
ctomc
commented
Oct 18, 2016
- introduces parser providers (via staxmapper 1.3)
- migrates core subsystems to use it
- should reduce memory usage down a bit
aa0e03f
to
1b10ebc
Compare
@@ -462,7 +463,8 @@ public static PersistentResourceXMLBuilder builder(final PathElement pathElement | |||
protected boolean noAddOperation; | |||
protected AdditionalOperationsGenerator additionalOperationsGenerator; | |||
protected final LinkedList<AttributeDefinition> attributeList = new LinkedList<>(); | |||
protected final List<PersistentResourceXMLBuilder> children = new ArrayList<>(); | |||
final List<PersistentResourceXMLBuilder> childrenBuilder = new ArrayList<>(); | |||
final List<PersistentResourceXMLDescription> children = new ArrayList<>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This changes the visibility of 'children'.
It's too bad this class isn't final and all of these aren't just private. There are no subclasses in core or full.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, this used to be all private, than David (I think) extended it, for some custom impl that could fit the security-manager subsystem.
Which was later "fixed" by adding required features to PersistentResourceXMLDescription and extended class removed.
I think we could probably make this class final again.
@@ -462,7 +463,8 @@ public static PersistentResourceXMLBuilder builder(final PathElement pathElement | |||
protected boolean noAddOperation; | |||
protected AdditionalOperationsGenerator additionalOperationsGenerator; | |||
protected final LinkedList<AttributeDefinition> attributeList = new LinkedList<>(); | |||
protected final List<PersistentResourceXMLBuilder> children = new ArrayList<>(); | |||
final List<PersistentResourceXMLBuilder> childrenBuilder = new ArrayList<>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: 'childrenBuilders' is a better name as this is a collection.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
@@ -66,6 +67,9 @@ | |||
*/ | |||
void setSubsystemXmlMapping(String subsystemName, String namespaceUri, XMLElementReader<List<ModelNode>> reader); | |||
|
|||
|
|||
void setSubsystemXmlMapping(String subsystemName, String namespaceUri, Supplier<XMLElementReader<List<ModelNode>>> supplier); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs verbose javadoc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was written, but lost in refactoring somewhere.
fixed.
1b10ebc
to
c28c288
Compare
- introduces parser providers (via staxmapper 1.3) - migrates core subsystems to use it - should redurce memory usage down a bit
c28c288
to
c4f2d7a
Compare
retest this please |