public class OSGiDirectoryBasedRepository extends DirectoryBasedRepository
repository
listeners
Constructor and Description |
---|
OSGiDirectoryBasedRepository(String name,
File repository) |
OSGiDirectoryBasedRepository(String name,
File repository,
boolean isTimerThreadDaemon) |
Modifier and Type | Method and Description |
---|---|
void |
initialize()
Initialize the repository for use.
|
protected ModuleDefinition |
loadJar(File jar)
This class overrides this mthod, because we don't support the following cases:
1.
|
protected void |
loadModuleDefs(Map<ModuleId,ModuleDefinition> moduleDefs,
List<URI> libraries)
Called from
AbstractRepositoryImpl.initialize() to load all ModuleDefinition s and libraries defintions |
protected ModuleDefinition |
newModuleDefinition(File jar,
Attributes attr)
Extensibility point for subclasses to create a different instance
of
ModuleDefinition . |
addListener, isDisabled, shutdown
add, addLibrary, find, findAll, findAll, getJarLocations, getLocation, getName, remove, removeLibrary, removeListener, toString
public void initialize() throws IOException
Repository
initialize
in interface Repository
initialize
in class AbstractRepositoryImpl
IOException
- if an error occur accessing the repositoryprotected ModuleDefinition loadJar(File jar) throws IOException
loadJar
in class AbstractRepositoryImpl
jar
- bundle jarIOException
protected ModuleDefinition newModuleDefinition(File jar, Attributes attr) throws IOException
AbstractRepositoryImpl
ModuleDefinition
.newModuleDefinition
in class AbstractRepositoryImpl
jar
- The module jar file for which ModuleDefinition
will be created.
Never null.IOException
protected void loadModuleDefs(Map<ModuleId,ModuleDefinition> moduleDefs, List<URI> libraries) throws IOException
AbstractRepositoryImpl
AbstractRepositoryImpl.initialize()
to load all ModuleDefinition
s and libraries defintionsloadModuleDefs
in class DirectoryBasedRepository
IOException
Copyright © 2009–2023 Oracle Corporation. All rights reserved.