diff --git a/plugins/rest/src/main/java/org/apache/struts2/rest/ContentTypeInterceptor.java b/plugins/rest/src/main/java/org/apache/struts2/rest/ContentTypeInterceptor.java index 1c49d36f8f..40924fc5a7 100644 --- a/plugins/rest/src/main/java/org/apache/struts2/rest/ContentTypeInterceptor.java +++ b/plugins/rest/src/main/java/org/apache/struts2/rest/ContentTypeInterceptor.java @@ -34,10 +34,10 @@ */ public class ContentTypeInterceptor extends AbstractInterceptor { - private final ContentTypeHandlerManager selector; + private ContentTypeHandlerManager selector; @Inject - public ContentTypeInterceptor(ContentTypeHandlerManager selector) { + public void setContentTypeHandlerSelector(ContentTypeHandlerManager selector) { this.selector = selector; }