Skip to content
This repository was archived by the owner on Apr 8, 2025. It is now read-only.

Commit 09c31e6

Browse files
tom-vandepoeleDaan Kerkhofs
authored andcommitted
Added LoggingAwareExecuter interface to AnnotationBasedActionExecuter so exceptions in alfresco actions get handled the same as in ActionExecuterAbstractBase and not throw a java.lang.ClassCastException
1 parent 0f8011d commit 09c31e6

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

annotations-runtime/src/main/java/com/github/dynamicextensionsalfresco/actions/AnnotationBasedActionExecuter.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
package com.github.dynamicextensionsalfresco.actions;
22

33
import org.alfresco.repo.action.executer.ActionExecuter;
4+
import org.alfresco.repo.action.executer.LoggingAwareExecuter;
45
import org.alfresco.service.cmr.action.Action;
56
import org.alfresco.service.cmr.action.ActionDefinition;
67
import org.alfresco.service.cmr.repository.NodeRef;
78

8-
class AnnotationBasedActionExecuter implements ActionExecuter {
9+
class AnnotationBasedActionExecuter implements ActionExecuter, LoggingAwareExecuter {
910

1011
private final ActionMethodMapping mapping;
1112

@@ -53,4 +54,9 @@ public boolean getTrackStatus() {
5354
return false;
5455
}
5556

57+
@Override
58+
public boolean onLogException(Log logger, Throwable t, String message) {
59+
return false;
60+
}
61+
5662
}

0 commit comments

Comments
 (0)