Description
For OAK-6580 we need to validate node types at mount time. The logic to perform the validation is properly encapsulated in the org.apache.jackrabbit.oak.plugins.nodetype.TypeEditor class. There are two issues which we need to work around:
- the type is not accessible
- the constraint violation handling is not pluggable - it either fails or log a WARN
My proposal is to:
- make the TypeEditor public and add a factory method for accesing it
- add a ConstraintViolationCallback interface which must be passed in to the TypeEditor
Attachments
Issue Links
- blocks
-
OAK-6580 Ensure mounts are consistent with the node type registry
- Closed