Class ClasspathResourceSystemFactory
java.lang.Object
net.officefloor.web.resource.classpath.ClasspathResourceSystemFactory
- All Implemented Interfaces:
ResourceSystemFactory
Classpath
ResourceSystemFactory.- Author:
- Daniel Sagenschneider
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates theResourceSystem.Obtains the protocol name for the createdResourceSystem.
-
Field Details
-
PROTOCOL_NAME
Protocol name.- See Also:
-
-
Constructor Details
-
ClasspathResourceSystemFactory
Instantiate.- Parameters:
classLoader-ClassLoader.
-
-
Method Details
-
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.
-