public final class ModuleManagerImpl extends Object implements ModuleManager
Constructor and Description |
---|
ModuleManagerImpl(org.jboss.osgi.resolver.XEnvironment env,
SystemPaths syspaths,
FrameworkEvents frameworkEvents,
FrameworkModuleProvider moduleProvider,
FrameworkModuleLoader moduleLoader) |
Modifier and Type | Method and Description |
---|---|
org.jboss.modules.ModuleIdentifier |
addModule(org.jboss.osgi.resolver.XBundleRevision brev,
List<org.osgi.framework.wiring.BundleWire> wires) |
org.jboss.osgi.resolver.XBundle |
getBundleState(Class<?> clazz)
Get the bundle for the given class
|
org.jboss.modules.Module |
getFrameworkModule() |
org.jboss.modules.Module |
getModule(org.jboss.modules.ModuleIdentifier identifier)
Get the module with the given identifier
|
org.jboss.modules.ModuleIdentifier |
getModuleIdentifier(org.jboss.osgi.resolver.XBundleRevision brev) |
org.jboss.modules.Module |
loadModule(org.jboss.modules.ModuleIdentifier identifier)
Load the module for the given identifier
|
void |
removeModule(org.jboss.osgi.resolver.XBundleRevision brev,
org.jboss.modules.ModuleIdentifier identifier)
Remove the module with the given identifier
|
public ModuleManagerImpl(org.jboss.osgi.resolver.XEnvironment env, SystemPaths syspaths, FrameworkEvents frameworkEvents, FrameworkModuleProvider moduleProvider, FrameworkModuleLoader moduleLoader)
public org.jboss.modules.Module getFrameworkModule()
getFrameworkModule
in interface ModuleManager
public org.jboss.modules.ModuleIdentifier getModuleIdentifier(org.jboss.osgi.resolver.XBundleRevision brev)
getModuleIdentifier
in interface ModuleManager
public org.jboss.modules.Module getModule(org.jboss.modules.ModuleIdentifier identifier)
getModule
in interface ModuleManager
public org.jboss.osgi.resolver.XBundle getBundleState(Class<?> clazz)
getBundleState
in interface ModuleManager
public org.jboss.modules.ModuleIdentifier addModule(org.jboss.osgi.resolver.XBundleRevision brev, List<org.osgi.framework.wiring.BundleWire> wires)
addModule
in interface ModuleManager
public org.jboss.modules.Module loadModule(org.jboss.modules.ModuleIdentifier identifier) throws org.jboss.modules.ModuleLoadException
loadModule
in interface ModuleManager
org.jboss.modules.ModuleLoadException
- If the module cannot be loadedpublic void removeModule(org.jboss.osgi.resolver.XBundleRevision brev, org.jboss.modules.ModuleIdentifier identifier)
removeModule
in interface ModuleManager
Copyright © 2013 JBoss by Red Hat. All rights reserved.