Skip to main content
Adobe Employee
August 7, 2024
해결됨

EditorProvider not being executed

  • August 7, 2024
  • 1 답변
  • 509 조회

 

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?
 
 
 
이 주제는 답변이 닫혔습니다.
최고의 답변: 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 답변

arunpatidar
Community Advisor
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