| Modifier and Type | Field and Description |
|---|---|
| pack-priv final List | |
| private ClassLoader |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ModulesRegistry | createChild()
Implements com. Creates a new child |
| public void | detachAll()
Implements com. Detaches all the modules from this registry. |
| public HK2Module | find(Class<T> clazz)
Implements com. Finds the |
| public List | |
| public ClassLoader | Returns: class loader instancethe parent class loader for the returned class loader instance parent, Collection<ModuleDefinition> module definitions for all modules this classloader should be
capable of loading defs, URL[] urls to be added to the module classloader urls)Implements com. Returns a ClassLoader capable of loading classes from a set of modules identified by their module definition and also load new urls. |
| public ClassLoader | Returns: class loader instancethe parent class loader for the returned class loader instance parent, Collection<ModuleDefinition> module definitions for all modules this classloader should be
capable of loading classes from defs)Implements com. Returns a ClassLoader capable of loading classes from a set of modules identified by their module definition |
| public ClassLoader | Returns: the parent classloaderImplements com. Returns the parent class loader parenting the class loaders created by modules associated with this registry. |
| public ModuleImpl | getProvidingModule(String providerClassName)
Overrides com. Implements com. Gets the |
| protected HK2Module | newModule(ModuleDefinition moduleDef)
Implements abstract com. Factory method for creating new instances of HK2Module. |
| pack-priv ModuleImpl | Returns: the new private module or null if cannot be foundthe module name moduleName, String the desired version version)Creates and return a new private module implementation giving a name and version constraints. |
| protected List | parseInhabitants(HK2Module module, String name, ServiceLocator serviceLocator, List<PopulatorPostProcessor> postProcessors)
Implements abstract com.
|
| public void | register(ModuleLifecycleListener
the listener implementation listener)Implements com. Add a |
| public void | setParentClassLoader(ClassLoader
parent class loader parent)Implements com. Sets the classloader parenting the class loaders created by the modules associated with this registry. |
| public void | shutdown()
Implements com. Shuts down this module's registry, apply housekeeping tasks |
| public void | unregister(ModuleLifecycleListener
the listener to unregister listener)Implements com. Removes an |
| lifecycleListeners | back to summary |
|---|---|
| pack-priv final List<ModuleLifecycleListener> lifecycleListeners | |
| parentLoader | back to summary |
|---|---|
| private ClassLoader parentLoader | |
| ModulesRegistryImpl | back to summary |
|---|---|
| public ModulesRegistryImpl(ModulesRegistry parent) | |
| createChild | back to summary |
|---|---|
| public ModulesRegistry createChild() Implements com. Creates a new child | |
| detachAll | back to summary |
|---|---|
| public void detachAll() Implements com. Detaches all the modules from this registry. The modules are not deconstructed when calling this method. | |
| find | back to summary |
|---|---|
| public HK2Module find(Class<T> clazz) Implements com. Doc from com. Finds the | |
| getLifecycleListeners | back to summary |
|---|---|
| public List | |
| getModulesClassLoader | back to summary |
|---|---|
| public ClassLoader getModulesClassLoader(ClassLoader parent, Collection<ModuleDefinition> defs, URL[] urls) throws ResolveError Implements com. Returns a ClassLoader capable of loading classes from a set of modules identified by their module definition and also load new urls.
| |
| getModulesClassLoader | back to summary |
|---|---|
| public ClassLoader getModulesClassLoader(ClassLoader parent, Collection<ModuleDefinition> defs) throws ResolveError Implements com. Returns a ClassLoader capable of loading classes from a set of modules identified by their module definition
| |
| getParentClassLoader | back to summary |
|---|---|
| public ClassLoader getParentClassLoader() Implements com. Returns the parent class loader parenting the class loaders created by modules associated with this registry.
| |
| getProvidingModule | back to summary |
|---|---|
| public ModuleImpl getProvidingModule(String providerClassName) Overrides com. Implements com. Doc from com. Gets the
| |
| newModule | back to summary |
|---|---|
| protected HK2Module newModule(ModuleDefinition moduleDef) Implements abstract com. Doc from com. Factory method for creating new instances of HK2Module. | |
| newPrivateModuleFor | back to summary |
|---|---|
| pack-priv ModuleImpl newPrivateModuleFor(String moduleName, String version) Creates and return a new private module implementation giving a name and version constraints. A private module is like any other module except it is not registered to be shared by other potential module users.
| |
| parseInhabitants | back to summary |
|---|---|
| protected List Implements abstract com. | |
| register | back to summary |
|---|---|
| public void register(ModuleLifecycleListener listener) Implements com. Add a
| |
| setParentClassLoader | back to summary |
|---|---|
| public void setParentClassLoader(ClassLoader parent) Implements com. Sets the classloader parenting the class loaders created by the modules associated with this registry.
| |
| shutdown | back to summary |
|---|---|
| public void shutdown() Implements com. Shuts down this module's registry, apply housekeeping tasks | |
| unregister | back to summary |
|---|---|
| public void unregister(ModuleLifecycleListener listener) Implements com. Removes an
| |