|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sakaiproject.component.cover.ComponentManager
public class ComponentManager
ComponentManager is a static Cover for the
Component Manager;
see that interface for usage details.
This cover is special. As a cover for the component manager, it cannot use the component manager to find the instance. Instead, this is where a static single-instance singleton ComponentManger of a particular type is created.
| Field Summary | |
|---|---|
static boolean |
CACHE_COMPONENTS
If true, covers will cache the components they find once - good for production, bad for some unit testing. |
protected static ComponentManager |
m_componentManager
A component manager - use the Spring based one. |
static String |
SAKAI_COMPONENTS_ROOT_SYS_PROP
|
static boolean |
testingMode
Setup the CM in testingMode if this is true (this is to be used for unit tests only), has no effect if the CM is already initialized |
| Constructor Summary | |
|---|---|
ComponentManager()
|
|
| Method Summary | |
|---|---|
static void |
close()
|
static boolean |
contains(Class iface)
|
static boolean |
contains(String ifaceName)
|
static Object |
get(Class iface)
|
static Object |
get(String ifaceName)
|
static 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. |
static ComponentManager |
getInstance()
Access the component manager of the single instance. |
static Set |
getRegisteredInterfaces()
|
static boolean |
hasBeenClosed()
|
static boolean |
isTestingMode()
|
static void |
loadComponent(Class iface,
Object component)
|
static void |
loadComponent(String ifaceName,
Object component)
|
static void |
setLateRefresh(boolean b)
|
static void |
shutdown()
TESTING ONLY closes and then destroys the component manager WARNING: this is NOT safe to do in a production system |
static void |
waitTillConfigured()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static ComponentManager m_componentManager
public static final boolean CACHE_COMPONENTS
public static String SAKAI_COMPONENTS_ROOT_SYS_PROP
public static boolean testingMode
| Constructor Detail |
|---|
public ComponentManager()
| Method Detail |
|---|
public static boolean isTestingMode()
public static void shutdown()
public static ComponentManager getInstance()
public static Object get(Class iface)
public static Object get(String ifaceName)
public static boolean contains(Class iface)
public static boolean contains(String ifaceName)
public static Set getRegisteredInterfaces()
public static void loadComponent(Class iface,
Object component)
public static void loadComponent(String ifaceName,
Object component)
public static void close()
@Deprecated public static Properties getConfig()
public static void waitTillConfigured()
public static boolean hasBeenClosed()
public static void setLateRefresh(boolean b)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||