|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.dotnet.registry.impl.RepositoryRegistryImpl
public class RepositoryRegistryImpl
Field Summary |
---|
Fields inherited from interface org.apache.maven.dotnet.registry.RepositoryRegistry |
---|
ROLE |
Constructor Summary | |
---|---|
RepositoryRegistryImpl()
|
Method Summary | |
---|---|
void |
addRepository(java.lang.String name,
Repository repository)
Adds a repository to the registry. |
void |
empty()
Empties all of the repositories from the registry. |
Repository |
find(java.lang.String name)
Finds a repository from the registry. |
java.util.Set |
getRepositoryNames()
Accessor for repository names. |
void |
initialize()
|
boolean |
isEmpty()
Returns true if the registry is empty, otherwise returns true. |
void |
loadFromFile(java.lang.String fileName)
Convenience method for loading a file off of a file system. |
void |
loadFromInputStream(java.io.InputStream inputStream)
Loads the registry from inputStream. |
void |
loadFromResource(java.lang.String fileName,
java.lang.Class sourceClass)
Convenience method for loading from a JAR or Resource. |
void |
removeRepository(java.lang.String name)
Removes a repository from the registry |
void |
setRegistryLoader(RegistryLoader loader)
Mutator for setting the RegistryLoader |
void |
setRepositoryLoader(RepositoryLoader loader)
Mutator for setting the RepositoryLoader |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RepositoryRegistryImpl()
Method Detail |
---|
public void initialize() throws org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException
initialize
in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable
org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException
Initializable.initialize()
public boolean isEmpty()
RepositoryRegistry
isEmpty
in interface RepositoryRegistry
public void setRepositoryLoader(RepositoryLoader loader)
RepositoryRegistry
RepositoryLoader
setRepositoryLoader
in interface RepositoryRegistry
public void setRegistryLoader(RegistryLoader loader)
RepositoryRegistry
RegistryLoader
setRegistryLoader
in interface RepositoryRegistry
public void loadFromInputStream(java.io.InputStream inputStream) throws java.io.IOException
RepositoryRegistry
loadFromInputStream
in interface RepositoryRegistry
inputStream
- contains the jvending-config file.
java.io.IOException
- thrown on interrupted I/Opublic void loadFromFile(java.lang.String fileName) throws java.io.IOException
RepositoryRegistry
loadFromFile
in interface RepositoryRegistry
fileName
- relative or absolute path of the file
java.io.IOException
- thrown on interrupted I/Opublic void loadFromResource(java.lang.String fileName, java.lang.Class sourceClass) throws java.io.IOException
RepositoryRegistry
loadFromResource
in interface RepositoryRegistry
fileName
- relative or absolute path of the file
java.io.IOException
- thrown on interrupted I/Opublic void addRepository(java.lang.String name, Repository repository)
RepositoryRegistry
addRepository
in interface RepositoryRegistry
name
- name of the repositoryrepository
- instance of the repositorypublic Repository find(java.lang.String name)
RepositoryRegistry
find
in interface RepositoryRegistry
name
- name of the repository.
public void removeRepository(java.lang.String name)
RepositoryRegistry
removeRepository
in interface RepositoryRegistry
name
- name of the repositorypublic java.util.Set getRepositoryNames()
RepositoryRegistry
getRepositoryNames
in interface RepositoryRegistry
public void empty()
RepositoryRegistry
empty
in interface RepositoryRegistry
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |