EditorProvider not being executed | Community
Skip to main content
Adobe Employee
August 7, 2024
Solved

EditorProvider not being executed

  • August 7, 2024
  • 1 reply
  • 492 views

 

Hi team, we have written a commit hook by creating a  service class implementing EditorProvider, here is the class

 

@8220494(service = EditorProvider.class) public class AssetMetadataEditorProvider implements EditorProvider { private static final Logger log = LoggerFactory.getLogger(AssetMetadataEditorProvider.class); @9944223 public Editor getRootEditor(NodeState before, NodeState after, NodeBuilder builder, CommitInfo info) throws CommitFailedException { log.info("!!!!!!!!!!!!!!!!!!! execution of asset metadata editor"); return new AssetMetadataEditor(builder); } }
 
 
I can see this provider in the OSGi console “components” but for some reason this provider is not executed. Is there any extra step needed?
 
 
 
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by arunpatidar

Hi @amsalek4 
I don't think so if additional changes are required based on [1] and [2], I don't find any documentation thats says otherwise

 

References:

[1] https://jackrabbit.apache.org/oak/docs/architecture/nodestate.html#commit-editors 

[2] https://github.com/pombredanne/jackrabbit-oak/blob/1.6/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/nodetype/TypeEditorProvider.java 

 

1 reply

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
August 7, 2024

Hi @amsalek4 
I don't think so if additional changes are required based on [1] and [2], I don't find any documentation thats says otherwise

 

References:

[1] https://jackrabbit.apache.org/oak/docs/architecture/nodestate.html#commit-editors 

[2] https://github.com/pombredanne/jackrabbit-oak/blob/1.6/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/nodetype/TypeEditorProvider.java 

 

Arun Patidar