Package org.jvnet.hk2.osgiadapter
Class OSGiModuleImpl
java.lang.Object
org.jvnet.hk2.osgiadapter.OSGiModuleImpl
- All Implemented Interfaces:
HK2Module
- Direct Known Subclasses:
OSGiObrModuleImpl
- Author:
- Sanjeeb.Sahoo@Sun.COM
-
Constructor Summary
ConstructorsConstructorDescriptionOSGiModuleImpl(AbstractOSGiModulesRegistryImpl registry, org.osgi.framework.Bundle bundle, ModuleDefinition md) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddImport(ModuleDependency dependency) voidaddListener(ModuleChangeListener listener) voiddetach()voiddumpState(PrintStream writer) booleanorg.osgi.framework.BundlegetName()getProvidersClass(Class<T> serviceClass) getProvidersClass(String name) getState()inthashCode()booleanhasProvider(Class serviceClass) booleanisShared()booleanisSticky()booleanvoidrefresh()voidremoveListener(ModuleChangeListener listener) voidresolve()protected voidsetBundle(org.osgi.framework.Bundle bundle) voidsetSticky(boolean sticky) voidstart()booleanstop()toString()void
-
Constructor Details
-
OSGiModuleImpl
public OSGiModuleImpl(AbstractOSGiModulesRegistryImpl registry, org.osgi.framework.Bundle bundle, ModuleDefinition md)
-
-
Method Details
-
getModuleDefinition
- Specified by:
getModuleDefinitionin interfaceHK2Module
-
getName
-
getRegistry
- Specified by:
getRegistryin interfaceHK2Module
-
getState
-
resolve
- Specified by:
resolvein interfaceHK2Module- Throws:
ResolveError
-
start
- Specified by:
startin interfaceHK2Module- Throws:
ResolveError
-
stop
public boolean stop() -
detach
public void detach() -
uninstall
public void uninstall() -
refresh
public void refresh() -
getMetadata
- Specified by:
getMetadatain interfaceHK2Module
-
getProvidersClass
- Specified by:
getProvidersClassin interfaceHK2Module
-
getProvidersClass
- Specified by:
getProvidersClassin interfaceHK2Module
-
hasProvider
- Specified by:
hasProviderin interfaceHK2Module
-
addListener
- Specified by:
addListenerin interfaceHK2Module
-
removeListener
- Specified by:
removeListenerin interfaceHK2Module
-
dumpState
-
getClassLoader
- Specified by:
getClassLoaderin interfaceHK2Module
-
addImport
-
addImport
-
isSticky
public boolean isSticky() -
setSticky
public void setSticky(boolean sticky) -
getImports
- Specified by:
getImportsin interfaceHK2Module
-
getBundle
public org.osgi.framework.Bundle getBundle() -
isTransientlyActive
public boolean isTransientlyActive() -
toString
-
hashCode
public int hashCode() -
equals
-
setBundle
protected void setBundle(org.osgi.framework.Bundle bundle)
-