Package net.officefloor.servlet.supply
Class ServletWoofExtensionService
- java.lang.Object
-
- net.officefloor.servlet.supply.ServletWoofExtensionService
-
- All Implemented Interfaces:
ServiceFactory<WoofExtensionService>
,WoofExtensionService
,WoofExtensionServiceFactory
public class ServletWoofExtensionService extends java.lang.Object implements WoofExtensionServiceFactory, WoofExtensionService
WoofExtensionService
to provide aServlet
container.- Author:
- Daniel Sagenschneider
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
PROPERTY_WAR_PATH
Property
to specify path to web application (WAR).
-
Constructor Summary
Constructors Constructor Description ServletWoofExtensionService()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description WoofExtensionService
createService(ServiceContext context)
Creates the service.void
extend(WoofContext context)
Extends theWebArchitect
.static java.lang.String
getChainServletsPropertyName(java.lang.String officeName)
Obtains theProperty
name forServletSupplierSource.PROPERTY_CHAIN_SERVLETS
.
-
-
-
Field Detail
-
PROPERTY_WAR_PATH
public static final java.lang.String PROPERTY_WAR_PATH
Property
to specify path to web application (WAR).- See Also:
- Constant Field Values
-
-
Method Detail
-
getChainServletsPropertyName
public static java.lang.String getChainServletsPropertyName(java.lang.String officeName)
Obtains theProperty
name forServletSupplierSource.PROPERTY_CHAIN_SERVLETS
.- Parameters:
officeName
- Name of theOffice
.- Returns:
Property
name forServletSupplierSource.PROPERTY_CHAIN_SERVLETS
.
-
createService
public WoofExtensionService createService(ServiceContext context) throws java.lang.Throwable
Description copied from interface:ServiceFactory
Creates the service.- Specified by:
createService
in interfaceServiceFactory<WoofExtensionService>
- Parameters:
context
-ServiceContext
.- Returns:
- Service.
- Throws:
java.lang.Throwable
- If fails to create the service.
-
extend
public void extend(WoofContext context) throws java.lang.Exception
Description copied from interface:WoofExtensionService
Extends theWebArchitect
.- Specified by:
extend
in interfaceWoofExtensionService
- Parameters:
context
-WoofContext
.- Throws:
java.lang.Exception
- If fails to extend.
-
-