org.jboss.osgi.resolver
Interface XResolver

All Known Implementing Classes:
AbstractResolver

public interface XResolver

An OSGi resolver.

Since:
02-Jul-2010
Author:
thomas.diesler@jboss.com

Method Summary
 void addModule(XModule module)
          Add a module to the resolver.
 XModule getModuleById(XModuleIdentity moduleId)
          Find the a module for a given id.
 Set<XModule> getModules()
          Get the list of registered modules
 void removeModule(XModule module)
          Remove a module from the resolver.
 void resolve(XModule rootModule)
          Resolve the given root module
 boolean resolveAll(Set<XModule> modules)
          Resolve the given set of modules
 void setCallbackHandler(XResolverCallback callback)
          The the optional callback handler on the resolver
 

Method Detail

addModule

void addModule(XModule module)
Add a module to the resolver.


removeModule

void removeModule(XModule module)
Remove a module from the resolver.


getModules

Set<XModule> getModules()
Get the list of registered modules


getModuleById

XModule getModuleById(XModuleIdentity moduleId)
Find the a module for a given id.


resolve

void resolve(XModule rootModule)
             throws XResolverException
Resolve the given root module

Throws:
XResolverException - if the module cannot be resolved

resolveAll

boolean resolveAll(Set<XModule> modules)
Resolve the given set of modules

Parameters:
modules - The set of modules or null for all modules
Returns:
True if all modules could be resolved

setCallbackHandler

void setCallbackHandler(XResolverCallback callback)
The the optional callback handler on the resolver



Copyright © 2012. All Rights Reserved.