@Test public void shouldNotRegisterStaticMethods() { registry.register("name", new MyServiceWithStaticMethod(), null, null, false); verify(marshallerRegistry, never()).registerTypes(String.class); }
public void register(final String name, final Service service, final List<AsyncFilter> asyncFilters, final List<StreamFilter> streamFilters, final boolean bindPrefix) { final Map<String, Map<HttpRequestMethodType, EndpointDescriptor>> descriptors = getEndpointsDescriptor(service, asyncFilters, streamFilters); registerEndpoints(descriptors, name, service, null, null, bindPrefix); }
ServiceRegistry implements ServiceRegistryView { public void register(final String name, final Service service, final List<AsyncFilter> asyncFilters, final List<StreamFilter> streamFilters, final boolean bindPrefix) { final Map<String, Map<HttpRequestMethodType, EndpointDescriptor>> descriptors = getEndpointsDescriptor(service, asyncFilters, streamFilters); registerEndpoints(descriptors, name, service, null, null, bindPrefix); } }
ServiceRegistry implements ServiceRegistryView { public void register(final String name, final Service service, final List<AsyncFilter> asyncFilters, final List<StreamFilter> streamFilters, final boolean bindPrefix) { final Map<String, Map<HttpRequestMethodType, EndpointDescriptor>> descriptors = getEndpointsDescriptor(service, asyncFilters, streamFilters); registerEndpoints(descriptors, name, service, null, null, bindPrefix); } ServiceRegistry(); }
ServiceRegistry implements ServiceRegistryView { public void register(final String name, final Service service, final List<AsyncFilter> asyncFilters, final List<StreamFilter> streamFilters, final boolean bindPrefix) { final Map<String, Map<HttpRequestMethodType, EndpointDescriptor>> descriptors = getEndpointsDescriptor(service, asyncFilters, streamFilters); registerEndpoints(descriptors, name, service, null, null, bindPrefix); } ServiceRegistry(); void setContextPath(final String contextPath); String getContextPath(); void setMarshallerRegistry(final RequestMarshallerRegistry marshallerRegistry); RequestMarshallerRegistry getMarshallerRegistry(); ServerEndpoint findEndpoint(final String path, final HttpRequestMethodType requestMethodType, final Map<String, String> pathParams); void registerEndpoints(final Map<String, Map<HttpRequestMethodType, EndpointDescriptor>> descriptors,
                                final String name, final Service service,
                                final List<AsyncFilter> asyncFilters,
                                final List<StreamFilter> streamFilters,
                                final boolean bindPrefix); void register(final String name,
                       final Service service,
                       final List<AsyncFilter> asyncFilters,
                       final List<StreamFilter> streamFilters,
                       final boolean bindPrefix); SortedMap<String, Map<HttpRequestMethodType, ServerEndpointView>> getRegisteredEndpoints(); void logRegisteredEndpoints(); }
ServiceRegistry implements ServiceRegistryView { public void register(final String name, final Service service, final List<AsyncFilter> asyncFilters, final List<StreamFilter> streamFilters, final boolean bindPrefix) { final Map<String, Map<HttpRequestMethodType, EndpointDescriptor>> descriptors = getEndpointsDescriptor(service, asyncFilters, streamFilters); registerEndpoints(descriptors, name, service, null, null, bindPrefix); } ServiceRegistry(); void setContextPath(final String contextPath); String getContextPath(); void setMarshallerRegistry(final RequestMarshallerRegistry marshallerRegistry); RequestMarshallerRegistry getMarshallerRegistry(); ServerEndpoint findEndpoint(final String path, final HttpRequestMethodType requestMethodType, final Map<String, String> pathParams); void registerEndpoints(final Map<String, Map<HttpRequestMethodType, EndpointDescriptor>> descriptors,
                                final String name, final Service service,
                                final List<AsyncFilter> asyncFilters,
                                final List<StreamFilter> streamFilters,
                                final boolean bindPrefix); void register(final String name,
                       final Service service,
                       final List<AsyncFilter> asyncFilters,
                       final List<StreamFilter> streamFilters,
                       final boolean bindPrefix); SortedMap<String, Map<HttpRequestMethodType, ServerEndpointView>> getRegisteredEndpoints(); void logRegisteredEndpoints();  }