Search in sources :

Example 1 with RouteFilter

use of org.webpieces.router.api.routing.RouteFilter in project webpieces by deanhiller.

the class AbstractLoader method createServiceFromFilters.

@Override
public Service<MethodMeta, Action> createServiceFromFilters(RouteMeta meta, List<FilterInfo<?>> filterInfos) {
    Injector injector = meta.getInjector();
    List<RouteFilter<?>> filters = createFilters(injector, filterInfos);
    Service<MethodMeta, Action> svcWithFilters = loader.loadFilters(filters);
    return svcWithFilters;
}
Also used : MethodMeta(org.webpieces.router.api.dto.MethodMeta) Action(org.webpieces.router.api.actions.Action) Injector(com.google.inject.Injector) RouteFilter(org.webpieces.router.api.routing.RouteFilter)

Aggregations

Injector (com.google.inject.Injector)1 Action (org.webpieces.router.api.actions.Action)1 MethodMeta (org.webpieces.router.api.dto.MethodMeta)1 RouteFilter (org.webpieces.router.api.routing.RouteFilter)1