Class TemporaryDirectoryFileCacheService
- java.lang.Object
-
- net.officefloor.web.resource.build.TemporaryDirectoryFileCacheService
-
- All Implemented Interfaces:
ServiceFactory<FileCacheFactory>
,FileCacheFactory
,FileCacheService
public class TemporaryDirectoryFileCacheService extends java.lang.Object implements FileCacheService, FileCacheFactory
Temporary directoryFileCacheService
.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description TemporaryDirectoryFileCacheService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileCache
createFileCache(java.lang.String name)
Creates a newFileCache
.FileCacheFactory
createService(ServiceContext context)
Creates the service.
-
-
-
Method Detail
-
createService
public FileCacheFactory createService(ServiceContext context) throws java.lang.Throwable
Description copied from interface:ServiceFactory
Creates the service.- Specified by:
createService
in interfaceServiceFactory<FileCacheFactory>
- Parameters:
context
-ServiceContext
.- Returns:
- Service.
- Throws:
java.lang.Throwable
- If fails to create the service.
-
createFileCache
public FileCache createFileCache(java.lang.String name) throws java.io.IOException
Description copied from interface:FileCacheFactory
Creates a newFileCache
.- Specified by:
createFileCache
in interfaceFileCacheFactory
- Parameters:
name
- Name for theFileCache
.- Returns:
- New
FileCache
. - Throws:
java.io.IOException
- If fails to create a newFileCache
.
-
-