net.krecan.m2_proxy.store
Class FileStore

java.lang.Object
  extended by net.krecan.m2_proxy.repository.FileRepository
      extended by net.krecan.m2_proxy.store.FileStore
All Implemented Interfaces:
Repository, Store

public class FileStore
extends FileRepository
implements Store

Stores artifacts on the file system.

Author:
Lukas Krecan

Field Summary
 
Fields inherited from interface net.krecan.m2_proxy.Store
NULL_STORE
 
Constructor Summary
FileStore()
           
 
Method Summary
 Resource storeResource(Resource resource)
          Stores resource.
 String toString()
           
 
Methods inherited from class net.krecan.m2_proxy.repository.FileRepository
getBaseDir, getResourceFile, loadResource, setBaseDir
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.krecan.m2_proxy.Repository
loadResource
 

Constructor Detail

FileStore

public FileStore()
Method Detail

toString

public String toString()
Overrides:
toString in class Object

storeResource

public Resource storeResource(Resource resource)
                       throws IOException
Stores resource. Downloads from repository to the temporary file. Then copies the file to the destination.

Specified by:
storeResource in interface Store
Returns:
resource that can be read
Throws:
IOException


Copyright © 2006 null. All Rights Reserved.