Class NexusSearchRepositoryProvider
- java.lang.Object
-
- aQute.bnd.osgi.repository.BaseRepository
-
- de.mnl.osgi.bnd.repository.maven.provider.NexusSearchRepositoryProvider
-
- All Implemented Interfaces:
aQute.bnd.service.Plugin
,aQute.bnd.service.Refreshable
,aQute.bnd.service.RegistryPlugin
,aQute.bnd.service.RepositoryPlugin
,Repository
public class NexusSearchRepositoryProvider extends aQute.bnd.osgi.repository.BaseRepository implements Repository, aQute.bnd.service.Plugin, aQute.bnd.service.RegistryPlugin, aQute.bnd.service.RepositoryPlugin, aQute.bnd.service.Refreshable
Provide aNexusSearchOsgiRepository
as a bnd repository. The interesting work is done by theNexusSearchOsgiRepository
.
-
-
Field Summary
-
Fields inherited from interface org.osgi.service.repository.Repository
URL
-
-
Constructor Summary
Constructors Constructor Description NexusSearchRepositoryProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canWrite()
Map<Requirement,Collection<Capability>>
findProviders(Collection<? extends Requirement> requirements)
File
get(String bsn, aQute.bnd.version.Version version, Map<String,String> properties, aQute.bnd.service.RepositoryPlugin.DownloadListener... listeners)
String
getLocation()
String
getName()
File
getRoot()
List<String>
list(String pattern)
aQute.bnd.service.RepositoryPlugin.PutResult
put(InputStream stream, aQute.bnd.service.RepositoryPlugin.PutOptions options)
boolean
refresh()
void
setProperties(Map<String,String> properties)
void
setRegistry(aQute.bnd.service.Registry registry)
void
setReporter(aQute.service.reporter.Reporter reporter)
SortedSet<aQute.bnd.version.Version>
versions(String bsn)
-
Methods inherited from class aQute.bnd.osgi.repository.BaseRepository
findProviders, getExpressionCombiner, newRequirementBuilder
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.osgi.service.repository.Repository
findProviders, getExpressionCombiner, newRequirementBuilder
-
-
-
-
Constructor Detail
-
NexusSearchRepositoryProvider
public NexusSearchRepositoryProvider()
-
-
Method Detail
-
setProperties
public void setProperties(Map<String,String> properties) throws Exception
- Specified by:
setProperties
in interfaceaQute.bnd.service.Plugin
- Throws:
Exception
-
setRegistry
public void setRegistry(aQute.bnd.service.Registry registry)
- Specified by:
setRegistry
in interfaceaQute.bnd.service.RegistryPlugin
-
setReporter
public void setReporter(aQute.service.reporter.Reporter reporter)
- Specified by:
setReporter
in interfaceaQute.bnd.service.Plugin
-
getName
public String getName()
- Specified by:
getName
in interfaceaQute.bnd.service.RepositoryPlugin
-
put
public aQute.bnd.service.RepositoryPlugin.PutResult put(InputStream stream, aQute.bnd.service.RepositoryPlugin.PutOptions options) throws Exception
- Specified by:
put
in interfaceaQute.bnd.service.RepositoryPlugin
- Throws:
Exception
-
canWrite
public boolean canWrite()
- Specified by:
canWrite
in interfaceaQute.bnd.service.RepositoryPlugin
-
getRoot
public File getRoot() throws Exception
- Specified by:
getRoot
in interfaceaQute.bnd.service.Refreshable
- Throws:
Exception
-
refresh
public boolean refresh() throws Exception
- Specified by:
refresh
in interfaceaQute.bnd.service.Refreshable
- Throws:
Exception
-
get
public File get(String bsn, aQute.bnd.version.Version version, Map<String,String> properties, aQute.bnd.service.RepositoryPlugin.DownloadListener... listeners) throws Exception
- Specified by:
get
in interfaceaQute.bnd.service.RepositoryPlugin
- Throws:
Exception
-
list
public List<String> list(String pattern) throws Exception
- Specified by:
list
in interfaceaQute.bnd.service.RepositoryPlugin
- Throws:
Exception
-
versions
public SortedSet<aQute.bnd.version.Version> versions(String bsn) throws Exception
- Specified by:
versions
in interfaceaQute.bnd.service.RepositoryPlugin
- Throws:
Exception
-
getLocation
public String getLocation()
- Specified by:
getLocation
in interfaceaQute.bnd.service.RepositoryPlugin
-
findProviders
public Map<Requirement,Collection<Capability>> findProviders(Collection<? extends Requirement> requirements)
- Specified by:
findProviders
in interfaceRepository
-
-