Package net.officefloor.web.resource.spi
Interface ResourceSystemFactory
-
- All Known Implementing Classes:
ClasspathResourceSystemFactory,FileResourceSystemService
public interface ResourceSystemFactoryService for the creation of aResourceSystem.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ResourceSystemcreateResourceSystem(ResourceSystemContext context)Creates theResourceSystem.java.lang.StringgetProtocolName()Obtains the protocol name for the createdResourceSystem.
-
-
-
Method Detail
-
getProtocolName
java.lang.String getProtocolName()
Obtains the protocol name for the created
ResourceSystem.The protocol name is used as follows
[protocol]:locationto configure aResourceSystem.- Returns:
- Protocol name for the created
ResourceSystem.
-
createResourceSystem
ResourceSystem createResourceSystem(ResourceSystemContext context) throws java.io.IOException
Creates theResourceSystem.- Parameters:
context-ResourceSystemContext.- Returns:
ResourceSystem.- Throws:
java.io.IOException- If fails to create theResourceSystem.
-
-