Class FilesResource
- java.lang.Object
-
- com.zfabrik.resources.provider.Resource
-
- com.zfabrik.impl.components.files.FilesResource
-
- All Implemented Interfaces:
com.zfabrik.files.IFilesComponent
public class FilesResource extends com.zfabrik.resources.provider.Resource implements com.zfabrik.files.IFilesComponent
A files resource does just about nothing- Author:
- hb
-
-
Constructor Summary
Constructors Constructor Description FilesResource(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
as(java.lang.Class<T> clz)
Retrieve a typed representation of the resource.java.io.File
getRoot()
-
-
-
Method Detail
-
as
public <T> T as(java.lang.Class<T> clz)
Description copied from class:com.zfabrik.resources.provider.Resource
Retrieve a typed representation of the resource.- Overrides:
as
in classcom.zfabrik.resources.provider.Resource
- Parameters:
clz
- expected return type- Returns:
- the expected return type instance represented by the resource or
null
if the type facade is not supported.
-
getRoot
public java.io.File getRoot() throws java.io.IOException
- Throws:
java.io.IOException
-
-