use of com.liferay.apio.architect.alias.RequestFunction in project com-liferay-apio-architect by liferay.
the class RootEndpointImpl method activate.
@Activate
public void activate() {
RequestFunction<Optional<APITitle>> apiTitleRequestFunction = httpServletRequest -> _providerManager.provideOptional(httpServletRequest, APITitle.class);
RequestFunction<Optional<APIDescription>> apiDescriptionRequestFunction = httpServletRequest -> _providerManager.provideOptional(httpServletRequest, APIDescription.class);
_documentation = new Documentation(apiTitleRequestFunction, apiDescriptionRequestFunction);
}
Aggregations