Package net.officefloor.web.resource.spi
Interface ResourceSystemFactory
-
- All Known Implementing Classes:
ClasspathResourceSystemFactory
,FileResourceSystemService
public interface ResourceSystemFactory
Service for the creation of aResourceSystem
.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ResourceSystem
createResourceSystem(ResourceSystemContext context)
Creates theResourceSystem
.java.lang.String
getProtocolName()
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]:location
to 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
.
-
-