Class FileResourceSystemService
java.lang.Object
net.officefloor.web.resource.file.FileResourceSystemService
- All Implemented Interfaces:
ServiceFactory<ResourceSystemFactory>,ResourceSystemFactory,ResourceSystemService
public class FileResourceSystemService
extends Object
implements ResourceSystemFactory, ResourceSystemService
ResourceSystemFactory backed by files.- Author:
- Daniel Sagenschneider
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates theResourceSystem.createService(ServiceContext context) Creates the service.Obtains the protocol name for the createdResourceSystem.
-
Field Details
-
PROTOCOL_NAME
Protocol name.- See Also:
-
-
Constructor Details
-
FileResourceSystemService
public FileResourceSystemService()
-
-
Method Details
-
createService
Description copied from interface:ServiceFactoryCreates the service.- Specified by:
createServicein interfaceServiceFactory<ResourceSystemFactory>- Parameters:
context-ServiceContext.- Returns:
- Service.
- Throws:
Throwable- If fails to create the service.
-
getProtocolName
Description copied from interface:ResourceSystemFactoryObtains the protocol name for the created
ResourceSystem.The protocol name is used as follows
[protocol]:locationto configure aResourceSystem.- Specified by:
getProtocolNamein interfaceResourceSystemFactory- Returns:
- Protocol name for the created
ResourceSystem.
-
createResourceSystem
Description copied from interface:ResourceSystemFactoryCreates theResourceSystem.- Specified by:
createResourceSystemin interfaceResourceSystemFactory- Parameters:
context-ResourceSystemContext.- Returns:
ResourceSystem.- Throws:
IOException- If fails to create theResourceSystem.
-