Commits

Anonymous committed 9dac970

Use UnknownHandlerManager instead of UnknownHandler

git-svn-id: http://svn.opensymphony.com/svn/xwork/trunk@1991e221344d-f017-0410-9bd5-d282ab1896d7

  • Participants
  • Parent commits 5de87b4

Comments (0)

Files changed (1)

core/src/main/java/com/opensymphony/xwork2/DefaultActionProxy.java

     protected Configuration configuration;
     protected ActionConfig config;
     protected ActionInvocation invocation;
-    protected UnknownHandler unknownHandler;
+    protected UnknownHandlerManager unknownHandlerManager;
     protected String actionName;
     protected String namespace;
     protected String method;
         this.configuration = config;
     }
     
-    @Inject(required=false)
-    public void setUnknownHandler(UnknownHandler handler) {
-        this.unknownHandler = handler;
+    @Inject
+    public void setUnknownHandler(UnknownHandlerManager unknownHandlerManager) {
+        this.unknownHandlerManager = unknownHandlerManager;
     }
     
     @Inject(required=false) 
             UtilTimerStack.push(profileKey);
             config = configuration.getRuntimeConfiguration().getActionConfig(namespace, actionName);
     
-            if (config == null && unknownHandler != null) {
-                config = unknownHandler.handleUnknownAction(namespace, actionName);
+            if (config == null && unknownHandlerManager.hasUnknownHandlers()) {
+                config = unknownHandlerManager.handleUnknownAction(namespace, actionName);
             }
             if (config == null) {
                 String message;