@Singleton public class TemporaryPersistenceImpl extends Object implements TemporaryPersistence
| Constructor and Description |
|---|
TemporaryPersistenceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
clean(String id) |
File |
getById(String id) |
void |
init() |
void |
shutdown() |
String |
store(InputStream is) |
void |
update(String id,
InputStream is) |
@PostConstruct public void init()
init in interface TemporaryPersistencepublic File getById(String id) throws FileNotFoundException
getById in interface TemporaryPersistenceFileNotFoundExceptionpublic String store(InputStream is) throws FileNotFoundException, IOException
store in interface TemporaryPersistenceFileNotFoundExceptionIOException@PreDestroy public void clean(String id)
clean in interface TemporaryPersistencepublic void shutdown()
shutdown in interface TemporaryPersistencepublic void update(String id, InputStream is) throws FileNotFoundException, IOException
update in interface TemporaryPersistenceFileNotFoundExceptionIOExceptionCopyright © 2020. All Rights Reserved.