cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject [cxf] branch master updated: Annotating SseFeature as a CXF feature
Date Mon, 18 Sep 2017 10:33:00 GMT
This is an automated email from the ASF dual-hosted git repository.

sergeyb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cxf.git


The following commit(s) were added to refs/heads/master by this push:
     new 6846b40  Annotating SseFeature as a CXF feature
6846b40 is described below

commit 6846b4093fa73ebec34031210ee8ff16435ea406
Author: Sergey Beryozkin <sberyozkin@gmail.com>
AuthorDate: Mon Sep 18 11:32:47 2017 +0100

    Annotating SseFeature as a CXF feature
---
 rt/rs/sse/src/main/java/org/apache/cxf/jaxrs/sse/SseFeature.java | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/rt/rs/sse/src/main/java/org/apache/cxf/jaxrs/sse/SseFeature.java b/rt/rs/sse/src/main/java/org/apache/cxf/jaxrs/sse/SseFeature.java
index 7e3d75d..36ea9ed 100644
--- a/rt/rs/sse/src/main/java/org/apache/cxf/jaxrs/sse/SseFeature.java
+++ b/rt/rs/sse/src/main/java/org/apache/cxf/jaxrs/sse/SseFeature.java
@@ -22,11 +22,15 @@ import java.util.ArrayList;
 import java.util.List;
 
 import org.apache.cxf.Bus;
+import org.apache.cxf.annotations.Provider;
+import org.apache.cxf.annotations.Provider.Scope;
+import org.apache.cxf.annotations.Provider.Type;
 import org.apache.cxf.endpoint.Server;
 import org.apache.cxf.feature.AbstractFeature;
 import org.apache.cxf.jaxrs.provider.ServerProviderFactory;
 import org.apache.cxf.jaxrs.sse.atmosphere.SseAtmosphereEventSinkContextProvider;
 
+@Provider(value = Type.Feature, scope = Scope.Server)
 public class SseFeature extends AbstractFeature {
     @Override
     public void initialize(Server server, Bus bus) {

-- 
To stop receiving notification emails like this one, please contact
['"commits@cxf.apache.org" <commits@cxf.apache.org>'].

Mime
View raw message