|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.framework.searchpolicy.R4SearchPolicyCore
public class R4SearchPolicyCore
Nested Class Summary | |
---|---|
class |
R4SearchPolicyCore.PackageSource
This utility class represents a source for a given package, where the package is indicated by a particular module and the module's capability associated with that package. |
protected class |
R4SearchPolicyCore.ResolvedPackage
This utility class a resolved package, which is comprised of a set of PackageSources that is calculated by the resolver algorithm. |
Field Summary | |
---|---|
static ICapability[] |
m_emptyCapabilities
|
static IModule[] |
m_emptyModules
|
static R4SearchPolicyCore.PackageSource[] |
m_emptySources
|
Constructor Summary | |
---|---|
R4SearchPolicyCore(Logger logger,
java.util.Map configMap)
|
Method Summary | |
---|---|
void |
addResolverListener(ResolveListener l)
Adds a resolver listener to the search policy. |
java.lang.Object[] |
definePackage(IModule module,
java.lang.String pkgName)
|
java.lang.Class |
findClass(IModule module,
java.lang.String name)
|
java.lang.String |
findLibrary(IModule module,
java.lang.String name)
|
java.net.URL |
findResource(IModule module,
java.lang.String name)
|
java.util.Enumeration |
findResources(IModule module,
java.lang.String name)
|
static ICapability |
getExportPackageCapability(IModule m,
java.lang.String pkgName)
|
R4SearchPolicyCore.PackageSource[] |
getInUseCandidates(IRequirement req)
|
IModuleFactory |
getModuleFactory()
|
R4SearchPolicyCore.PackageSource[] |
getUnusedCandidates(IRequirement req)
|
void |
moduleAdded(ModuleEvent event)
This method is called after a module is added to the IModuleFactory. |
void |
moduleRefreshed(ModuleEvent event)
This is an experimental method that is likely to change or go away - so don't use it for now. |
void |
moduleRemoved(ModuleEvent event)
This method is called after a module is remove from the IModuleFactory. |
void |
removeResolverListener(ResolveListener l)
Removes a resolver listener to this search policy. |
void |
resolve(IModule rootModule)
|
void |
setModuleFactory(IModuleFactory factory)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final IModule[] m_emptyModules
public static final ICapability[] m_emptyCapabilities
public static final R4SearchPolicyCore.PackageSource[] m_emptySources
Constructor Detail |
---|
public R4SearchPolicyCore(Logger logger, java.util.Map configMap)
Method Detail |
---|
public IModuleFactory getModuleFactory()
public void setModuleFactory(IModuleFactory factory) throws java.lang.IllegalStateException
java.lang.IllegalStateException
public java.lang.Object[] definePackage(IModule module, java.lang.String pkgName)
public java.lang.Class findClass(IModule module, java.lang.String name) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
public java.net.URL findResource(IModule module, java.lang.String name) throws ResourceNotFoundException
ResourceNotFoundException
public java.util.Enumeration findResources(IModule module, java.lang.String name) throws ResourceNotFoundException
ResourceNotFoundException
public java.lang.String findLibrary(IModule module, java.lang.String name)
public R4SearchPolicyCore.PackageSource[] getInUseCandidates(IRequirement req)
public R4SearchPolicyCore.PackageSource[] getUnusedCandidates(IRequirement req)
public void resolve(IModule rootModule) throws ResolveException
ResolveException
public void addResolverListener(ResolveListener l)
l
- the resolver listener to add.public void removeResolverListener(ResolveListener l)
l
- the resolver listener to remove.public void moduleAdded(ModuleEvent event)
ModuleListener
This method is called after a module is added to the IModuleFactory.
moduleAdded
in interface ModuleListener
event
- the event object containing the event details.public void moduleRemoved(ModuleEvent event)
ModuleListener
This method is called after a module is remove from the IModuleFactory.
moduleRemoved
in interface ModuleListener
event
- the event object containing the event details.public void moduleRefreshed(ModuleEvent event)
moduleRefreshed
in interface ModuleListener
public static ICapability getExportPackageCapability(IModule m, java.lang.String pkgName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |