|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NetDependenciesRepository
Provides methods for loading and reading the net dependency config file.
Method Summary | |
---|---|
java.util.List<org.apache.maven.model.Dependency> |
getDependencies()
Returns a list of .NET dependencies as given within the net dependencies config file. |
java.util.List<org.apache.maven.model.Dependency> |
getDependenciesFor(java.util.List<NetDependencyMatchPolicy> matchPolicies)
Returns a list of .NET dependencies as given within the net dependencies config file that matches ALL of the specified match policies. |
void |
load(java.io.InputStream inputStream,
java.util.Hashtable properties)
Loads the configuration file and configuration properties. |
void |
setRepositoryRegistry(RepositoryRegistry repositoryRegistry)
|
Method Detail |
---|
void load(java.io.InputStream inputStream, java.util.Hashtable properties) throws java.io.IOException
Repository
inputStream
contains the adapters.txt file and the properties
holds the init-params. The init params should be
used to specialize the repository configuration. The example below shows that you can add new properties
to MyRepository
but not delete them.
<registry-config> <repositories> <repository> <repository-name>adapter</repository-name> <repository-class>org.jvending.sample.MyRepository</repository-class> <repository-config>${basedir}/adapters.txt</repository-config> <init-param> <param-name>add</param-name> <param-value>true</param-value> </init-param> <init-param> <param-name>delete</param-name> <param-value>false</param-value> </init-param> </repository> </repositories> </registry-config>Since this method uses an
InputStream
parameter, the configuration file can be loaded off of the
local file system or from a specific URL located at an HTTP address.
load
in interface Repository
inputStream
- the configuration fileproperties
- the properties used to configure the repository
java.io.IOException
- thrown on interrupted I/O. Implementing class may also use this exception to throw
other exceptions like invalid properties.Repository.load(java.io.InputStream, java.util.Hashtable)
void setRepositoryRegistry(RepositoryRegistry repositoryRegistry)
setRepositoryRegistry
in interface Repository
Repository.setRepositoryRegistry(org.apache.maven.dotnet.registry.RepositoryRegistry)
java.util.List<org.apache.maven.model.Dependency> getDependencies()
java.util.List<org.apache.maven.model.Dependency> getDependenciesFor(java.util.List<NetDependencyMatchPolicy> matchPolicies)
matchPolicies
- the policies to match against the dependencies
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |