Annotating SseFeature as a CXF feature
@@ -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) {
