org.apache.geronimo.system.repository
Class AbstractRepository
java.lang.Object
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
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 |
log
protected static final Log log
rootFile
protected final File rootFile
AbstractRepository
public AbstractRepository(URI root,
ServerInfo serverInfo)
AbstractRepository
public AbstractRepository(File rootFile)
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.