public class ServiceMap
extends java.lang.Object
EndpointsModule and injected into GuiceEndpointsServlet.| Modifier and Type | Method and Description |
|---|---|
static ServiceMap |
create(com.google.inject.Binder binder,
java.lang.Iterable<java.lang.Class<?>> classes)
Build method for a
ServiceMap. |
<T> T |
get(java.lang.Class<T> clazz)
Gets the object associated with the given service class.
|
public static ServiceMap create(com.google.inject.Binder binder, java.lang.Iterable<java.lang.Class<?>> classes)
ServiceMap.binder - A module's binder which has bindings for all service classesclasses - List of service class.ServiceMap object.public <T> T get(java.lang.Class<T> clazz)
clazz - The service class