public static class EverrestGuiceContextListener.DefaultListener extends EverrestGuiceContextListener
Path, Provider and Filter. Scanning of JAX-RS
components
is managed by contex-param org.everrest.scan.components. This parameter must be true to enable
scanning.EverrestGuiceContextListener.DefaultListener| Constructor and Description |
|---|
DefaultListener() |
| Modifier and Type | Method and Description |
|---|---|
protected List<com.google.inject.Module> |
getModules()
Implementation can provide set of own
Module for JAX-RS components. |
contextDestroyed, contextInitialized, getInjector, getInjector, getServletModule, makeFileCollectorDestroyer, processBindingsprotected List<com.google.inject.Module> getModules()
EverrestGuiceContextListenerModule for JAX-RS components.
protected List<Module> getModules()
{
List<Module> modules = new ArrayList<Module>(1);
modules.add(new Module()
{
public void configure(Binder binder)
{
binder.bind(MyResource.class);
binder.bind(MyProvider.class);
}
});
return modules;
}
getModules in class EverrestGuiceContextListenerCopyright © 2015. All rights reserved.