Skip to content
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

Merged
merged 1 commit into from Oct 20, 2016

Conversation

ctomc
Copy link
Contributor

@ctomc 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

@@ -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<>();
Copy link
Contributor

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.

Copy link
Contributor Author

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<>();
Copy link
Contributor

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.

Copy link
Contributor Author

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);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs verbose javadoc.

Copy link
Contributor Author

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.

- introduces parser providers (via staxmapper 1.3)
- migrates core subsystems to use it
- should redurce memory usage down a bit
@bstansberry
Copy link
Contributor

retest this please

@bstansberry bstansberry added the ready-for-merge This PR is ready to be merged and fulfills all requirements label Oct 20, 2016
@bstansberry bstansberry merged commit a7195ea into wildfly:master Oct 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-merge This PR is ready to be merged and fulfills all requirements
Projects
None yet
2 participants