Package aQute.bnd.deployer.repository
Class LocalIndexedRepo
java.lang.Object
aQute.bnd.osgi.repository.BaseRepository
aQute.bnd.deployer.repository.AbstractIndexedRepo
aQute.bnd.deployer.repository.LocalIndexedRepo
- All Implemented Interfaces:
aQute.bnd.service.Actionable,aQute.bnd.service.IndexProvider,aQute.bnd.service.Plugin,aQute.bnd.service.Refreshable,aQute.bnd.service.RegistryPlugin,aQute.bnd.service.RemoteRepositoryPlugin,aQute.bnd.service.RepositoryPlugin,aQute.bnd.service.tags.Tagged,org.osgi.service.coordinator.Participant,org.osgi.service.repository.Repository
public class LocalIndexedRepo
extends AbstractIndexedRepo
implements aQute.bnd.service.Refreshable, org.osgi.service.coordinator.Participant, aQute.bnd.service.Actionable
-
Nested Class Summary
Nested classes/interfaces inherited from interface aQute.bnd.service.RepositoryPlugin
aQute.bnd.service.RepositoryPlugin.DownloadListener, aQute.bnd.service.RepositoryPlugin.PutOptions, aQute.bnd.service.RepositoryPlugin.PutResult -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Filestatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class aQute.bnd.deployer.repository.AbstractIndexedRepo
allContentProviders, generatingProviders, logService, name, PROP_CACHE_TIMEOUT, PROP_CHECK_BSN, PROP_NAME, PROP_ONLINE, PROP_REPO_TYPE, PROP_RESOLUTION_PHASE, PROP_RESOLUTION_PHASE_ANY, PROP_VERSION_HASH, PROP_VERSION_KEY, registry, REPO_INDEX_SHA_EXTENSION, REPO_TYPE_R5, reporter, supportedPhasesFields inherited from interface org.osgi.service.repository.Repository
URLFields inherited from interface aQute.bnd.service.RepositoryPlugin
DEFAULT_REPO_TAGS, DEFAULTOPTIONSFields inherited from interface aQute.bnd.service.tags.Tagged
EMPTY_TAGS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanWrite()voidclose()voidended(org.osgi.service.coordinator.Coordination coordination) voidfailed(org.osgi.service.coordinator.Coordination coordination) protected voidfireBundleAdded(File file) getName()getRoot()aQute.bnd.service.RepositoryPlugin.PutResultput(InputStream stream, aQute.bnd.service.RepositoryPlugin.PutOptions options) protected FileputArtifact(File tmpFile) booleanrefresh()voidsetCacheDirectory(File cacheDir) voidsetLocations(String locations) voidsetProperties(Map<String, String> map) Methods inherited from class aQute.bnd.deployer.repository.AbstractIndexedRepo
findProviders, get, get, get, getHandle, getHandles, getIndexLocations, getSupportedPhases, init, init, list, loadAllContentProviders, parseLocations, requestAll, reset, setRegistry, setReporter, toString, versionsMethods inherited from class aQute.bnd.osgi.repository.BaseRepository
findProviders, getExpressionCombiner, getTags, newRequirementBuilder, setTagsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.osgi.service.repository.Repository
findProviders, getExpressionCombiner, newRequirementBuilderMethods inherited from interface aQute.bnd.service.RepositoryPlugin
getIcon, getStatus, isOk, isRemote, syncMethods inherited from interface aQute.bnd.service.tags.Tagged
getTags
-
Field Details
-
PROP_LOCAL_DIR
- See Also:
-
PROP_READONLY
- See Also:
-
PROP_PRETTY
- See Also:
-
PROP_OVERWRITE
- See Also:
-
PROP_ONLYDIRS
- See Also:
-
PROP_TAGS
- See Also:
-
PROP_LOCATIONS
- See Also:
-
PROP_CACHE
- See Also:
-
cacheDir
-
-
Constructor Details
-
LocalIndexedRepo
public LocalIndexedRepo()
-
-
Method Details
-
setProperties
- Specified by:
setPropertiesin interfaceaQute.bnd.service.Plugin- Overrides:
setPropertiesin classAbstractIndexedRepo
-
loadIndexes
- Specified by:
loadIndexesin classAbstractIndexedRepo- Returns:
- a list of URIs, parsed from the 'locations' property
- Throws:
Exception
-
getCacheDirectory
- Specified by:
getCacheDirectoryin interfaceaQute.bnd.service.RemoteRepositoryPlugin
-
setCacheDirectory
-
getName
- Specified by:
getNamein interfaceaQute.bnd.service.RepositoryPlugin- Overrides:
getNamein classAbstractIndexedRepo
-
canWrite
public boolean canWrite()- Specified by:
canWritein interfaceaQute.bnd.service.RepositoryPlugin- Overrides:
canWritein classAbstractIndexedRepo
-
ended
- Specified by:
endedin interfaceorg.osgi.service.coordinator.Participant- Throws:
Exception
-
failed
- Specified by:
failedin interfaceorg.osgi.service.coordinator.Participant- Throws:
Exception
-
putArtifact
- Throws:
Exception
-
put
public aQute.bnd.service.RepositoryPlugin.PutResult put(InputStream stream, aQute.bnd.service.RepositoryPlugin.PutOptions options) throws Exception - Specified by:
putin interfaceaQute.bnd.service.RepositoryPlugin- Overrides:
putin classAbstractIndexedRepo- Throws:
Exception
-
refresh
public boolean refresh()- Specified by:
refreshin interfaceaQute.bnd.service.Refreshable- Overrides:
refreshin classAbstractIndexedRepo
-
getRoot
- Specified by:
getRootin interfaceaQute.bnd.service.Refreshable
-
fireBundleAdded
- Throws:
Exception
-
getLocation
- Specified by:
getLocationin interfaceaQute.bnd.service.RepositoryPlugin
-
setLocations
-
actions
- Specified by:
actionsin interfaceaQute.bnd.service.Actionable- Throws:
Exception
-
tooltip
- Specified by:
tooltipin interfaceaQute.bnd.service.Actionable- Throws:
Exception
-
title
- Specified by:
titlein interfaceaQute.bnd.service.Actionable- Throws:
Exception
-
close
public void close()
-