public interface ComponentManager
...
| Modifier and Type | Field and Description |
|---|---|
static String |
SAKAI_COMPONENTS_ROOT_SYS_PROP
The java system property name where the full path to the components packages.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the component manager, shutting down any created singletons.
|
boolean |
contains(Class iface)
Check if this interface Class has a registered component.
|
boolean |
contains(String ifaceName)
Check if this interface Class name has a registered component.
|
<T> T |
get(Class<T> iface)
Find a component that is registered to provide this interface.
|
Object |
get(String ifaceName)
Find a component that is registered to provide this interface.
|
Properties |
getConfig()
Deprecated.
This method is redundant, not used by any known client, would expose implementation details,
and will be removed in a future release. Use the ServerConfigurationService instead.
|
Set<String> |
getRegisteredInterfaces()
Get all interfaces registered in the component manager.
|
boolean |
hasBeenClosed()
Check if the ComponentManager has already been or is in the processing of being closed.
|
void |
loadComponent(Class iface,
Object component)
Load a singleton already created component for this interface class as a singleton.
|
void |
loadComponent(String ifaceName,
Object component)
Load a singleton already created component for this interface class as a singleton.
|
void |
waitTillConfigured()
Deprecated.
|
static final String SAKAI_COMPONENTS_ROOT_SYS_PROP
<T> T get(Class<T> iface)
iface - The interface Class.Object get(String ifaceName)
ifaceName - The fully qualified interface Class name.boolean contains(Class iface)
iface - The interface Class.boolean contains(String ifaceName)
ifaceName - The fully qualified interface Class name.Set<String> getRegisteredInterfaces()
void loadComponent(Class iface, Object component)
iface - The interface class.component - The alread created component.void loadComponent(String ifaceName, Object component)
ifaceName - The fully qualified interface Class name.component - The alread created component.void close()
@Deprecated Properties getConfig()
void waitTillConfigured()
boolean hasBeenClosed()
Copyright © 2003–2020 The Sakai Foundation. All rights reserved.