Class ClasspathResourceSystemFactory
- java.lang.Object
-
- net.officefloor.web.resource.classpath.ClasspathResourceSystemFactory
-
- All Implemented Interfaces:
ResourceSystemFactory
public class ClasspathResourceSystemFactory extends java.lang.Object implements ResourceSystemFactory
ClasspathResourceSystemFactory.- Author:
- Daniel Sagenschneider
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPROTOCOL_NAMEProtocol name.
-
Constructor Summary
Constructors Constructor Description ClasspathResourceSystemFactory(java.lang.ClassLoader classLoader)Instantiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceSystemcreateResourceSystem(ResourceSystemContext context)Creates theResourceSystem.java.lang.StringgetProtocolName()Obtains the protocol name for the createdResourceSystem.
-
-
-
Field Detail
-
PROTOCOL_NAME
public static final java.lang.String PROTOCOL_NAME
Protocol name.- See Also:
- Constant Field Values
-
-
Method Detail
-
getProtocolName
public java.lang.String 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
public ResourceSystem createResourceSystem(ResourceSystemContext context) throws java.io.IOException
Description copied from interface:ResourceSystemFactoryCreates theResourceSystem.- Specified by:
createResourceSystemin interfaceResourceSystemFactory- Parameters:
context-ResourceSystemContext.- Returns:
ResourceSystem.- Throws:
java.io.IOException- If fails to create theResourceSystem.
-
-