Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards.
SOLVED

EditorProvider not being executed

Avatar

Employee

 

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

 

@component(service = EditorProvider.class) public class AssetMetadataEditorProvider implements EditorProvider { private static final Logger log = LoggerFactory.getLogger(AssetMetadataEditorProvider.class); @Override 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?
 
 
 
1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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/... 

 

Arun Patidar

AEM LinksLinkedIn

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

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/... 

 

Arun Patidar

AEM LinksLinkedIn