org.sakaiproject.api.kernel.component.cover
Class ComponentManager

java.lang.Object
  extended byorg.sakaiproject.api.kernel.component.cover.ComponentManager

public class ComponentManager
extends Object

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.

Version:
$Revision: 3290 $
Author:
University of Michigan, Sakai Software Development Team

Field Summary
static boolean CACHE_COMPONENTS
          If true, covers will cache the components they find once - good for production, bad for some unit testing.
static String SAKAI_COMPONENTS_ROOT_SYS_PROP
           
 
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()
           
static ComponentManager getInstance()
          Access the component manager of the single instance.
static Set getRegisteredInterfaces()
           
static void loadComponent(Class iface, Object component)
           
static void loadComponent(String ifaceName, Object component)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CACHE_COMPONENTS

public static final boolean CACHE_COMPONENTS
If true, covers will cache the components they find once - good for production, bad for some unit testing.

See Also:
Constant Field Values

SAKAI_COMPONENTS_ROOT_SYS_PROP

public static String SAKAI_COMPONENTS_ROOT_SYS_PROP
Constructor Detail

ComponentManager

public ComponentManager()
Method Detail

getInstance

public static ComponentManager getInstance()
Access the component manager of the single instance.

Returns:
The ComponentManager.

get

public static Object get(Class iface)

get

public static Object get(String ifaceName)

contains

public static boolean contains(Class iface)

contains

public static boolean contains(String ifaceName)

getRegisteredInterfaces

public static Set getRegisteredInterfaces()

loadComponent

public static void loadComponent(Class iface,
                                 Object component)

loadComponent

public static void loadComponent(String ifaceName,
                                 Object component)

close

public static void close()

getConfig

public static Properties getConfig()