org.apache.geronimo.system.repository
Class AbstractRepository

java.lang.Object
  extended by org.apache.geronimo.system.repository.AbstractRepository
All Implemented Interfaces:
org.apache.geronimo.kernel.repository.Repository, org.apache.geronimo.kernel.repository.WriteableRepository
Direct Known Subclasses:
Maven1Repository, Maven2Repository

public abstract class AbstractRepository
extends Object
implements org.apache.geronimo.kernel.repository.WriteableRepository


Field Summary
protected static Log log
           
protected  File rootFile
           
 
Constructor Summary
AbstractRepository(File rootFile)
           
AbstractRepository(URI root, ServerInfo serverInfo)
           
 
Method Summary
 boolean contains(org.apache.geronimo.kernel.repository.Artifact artifact)
           
 void copyToRepository(File source, org.apache.geronimo.kernel.repository.Artifact destination, org.apache.geronimo.kernel.repository.FileWriteMonitor monitor)
           
 void copyToRepository(InputStream source, int size, org.apache.geronimo.kernel.repository.Artifact destination, org.apache.geronimo.kernel.repository.FileWriteMonitor monitor)
           
 LinkedHashSet getDependencies(org.apache.geronimo.kernel.repository.Artifact artifact)
           
 void setTypeHandler(String type, org.apache.geronimo.kernel.repository.ArtifactTypeHandler handler)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.geronimo.kernel.repository.Repository
getLocation
 

Field Detail

log

protected static final Log log

rootFile

protected final File rootFile
Constructor Detail

AbstractRepository

public AbstractRepository(URI root,
                          ServerInfo serverInfo)

AbstractRepository

public AbstractRepository(File rootFile)
Method Detail

contains

public boolean contains(org.apache.geronimo.kernel.repository.Artifact artifact)
Specified by:
contains in interface org.apache.geronimo.kernel.repository.Repository

getDependencies

public LinkedHashSet getDependencies(org.apache.geronimo.kernel.repository.Artifact artifact)
Specified by:
getDependencies in interface org.apache.geronimo.kernel.repository.Repository

setTypeHandler

public void setTypeHandler(String type,
                           org.apache.geronimo.kernel.repository.ArtifactTypeHandler handler)

copyToRepository

public void copyToRepository(File source,
                             org.apache.geronimo.kernel.repository.Artifact destination,
                             org.apache.geronimo.kernel.repository.FileWriteMonitor monitor)
                      throws IOException
Specified by:
copyToRepository in interface org.apache.geronimo.kernel.repository.WriteableRepository
Throws:
IOException

copyToRepository

public void copyToRepository(InputStream source,
                             int size,
                             org.apache.geronimo.kernel.repository.Artifact destination,
                             org.apache.geronimo.kernel.repository.FileWriteMonitor monitor)
                      throws IOException
Specified by:
copyToRepository in interface org.apache.geronimo.kernel.repository.WriteableRepository
Throws:
IOException


Copyright © 2006 Apache Software Foundation. All Rights Reserved.