public class FileResourceProvider extends AbstractDataResourceProvider<FileResource>
DataResourceProvider
for
FileResource
.Constructor and Description |
---|
FileResourceProvider()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
FileResource |
createResource(ResourceUri resourceUri)
This method creates a new
resource for the given resourceUri . |
protected void |
doInitialize()
This method performs the actual
initialization . |
Class<FileResource> |
getResourceType()
This method gets the type of the resource managed by this provider.
|
String[] |
getSchemePrefixes()
This method gets the scheme-prefix of the
resources managed by this provider. |
void |
setFileUtil(FileUtil fileUtil) |
createLogger, getLogger
doInitialized, getInitializationState, initialize
private FileUtil fileUtil
protected void doInitialize()
AbstractComponent
initialization
. It is called when AbstractComponent.initialize()
is
invoked for the first time. super.
AbstractComponent.doInitialize()
.doInitialize
in class AbstractLoggableComponent
@Inject public void setFileUtil(FileUtil fileUtil)
fileUtil
- is the fileUtil to setpublic String[] getSchemePrefixes()
DataResourceProvider
resources
managed by this provider.ResourceUri.getSchemePrefix()
public Class<FileResource> getResourceType()
DataResourceProvider
BrowsableResource
.public FileResource createResource(ResourceUri resourceUri)
DataResourceProvider
resource
for the given resourceUri
.resourceUri
- is the ResourceUri
.resource
for the given resourceUri
.Copyright © 2001–2016 mmm-Team. All rights reserved.