![JAR search and dependency download from the Maven repository](/logo.png)
net.officefloor.spring.webflux.WebFluxWoofExtensionService Maven / Gradle / Ivy
/*-
* #%L
* OfficeFloor integration of WAR
* %%
* Copyright (C) 2005 - 2020 Daniel Sagenschneider
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see .
* #L%
*/
package net.officefloor.spring.webflux;
import net.officefloor.compile.spi.office.OfficeArchitect;
import net.officefloor.compile.spi.office.OfficeSection;
import net.officefloor.frame.api.source.ServiceContext;
import net.officefloor.woof.WoofContext;
import net.officefloor.woof.WoofExtensionService;
import net.officefloor.woof.WoofExtensionServiceFactory;
/**
* {@link WoofExtensionService} to service via Web Flux.
*
* @author Daniel Sagenschneider
*/
public class WebFluxWoofExtensionService implements WoofExtensionServiceFactory, WoofExtensionService {
/*
* ================ WoofExtensionServiceFactory ===================
*/
@Override
public WoofExtensionService createService(ServiceContext context) throws Throwable {
return this;
}
/*
* ================== WoofExtensionService =========================
*/
@Override
public void extend(WoofContext context) throws Exception {
OfficeArchitect office = context.getOfficeArchitect();
// Hook in WebApp servicing
OfficeSection servicer = office.addOfficeSection("SPRING_WEB_FLUX_SERVICER_SECTION",
WebFluxSectionSource.class.getName(), null);
context.getWebArchitect().chainServicer(servicer.getOfficeSectionInput(WebFluxSectionSource.INPUT),
servicer.getOfficeSectionOutput(WebFluxSectionSource.OUTPUT));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy