|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sakaiproject.component.cover.TestComponentManagerContainer
public class TestComponentManagerContainer
A container for a Test Component Manager that can be configured with one of more components.
| Constructor Summary | |
|---|---|
TestComponentManagerContainer(String configPaths)
create a component manager based on a list of component.xml |
|
| Method Summary | |
|---|---|
protected String |
generateSiteId()
Convenience method to create a somewhat unique site id for testing. |
ComponentManager |
getComponentManager()
get the current component manager |
Object |
getService(String beanId)
Convenience method to get a service bean from the Sakai component manager. |
static Object |
getServiceProxy(Class clazz,
InvocationHandler handler)
Returns a dynamic proxy for a service interface. |
void |
loadComponent(org.springframework.context.ConfigurableApplicationContext ac,
List<org.springframework.core.io.Resource> config,
ClassLoader loader)
Load the application context using a single classloader |
static void |
setSakaiHome(String sakaiHome)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TestComponentManagerContainer(String configPaths)
throws IOException
configPaths - a ';' seperated list of xml bean config files
IOException| Method Detail |
|---|
public void loadComponent(org.springframework.context.ConfigurableApplicationContext ac,
List<org.springframework.core.io.Resource> config,
ClassLoader loader)
ac - The spring application contextconfig - a list of configurations represented as List of resourcesloader - the classloader to usepublic ComponentManager getComponentManager()
protected String generateSiteId()
public static final Object getServiceProxy(Class clazz,
InvocationHandler handler)
clazz - The service interface classhandler - The invocation handler that defines how the dynamic proxy should behave
public static void setSakaiHome(String sakaiHome)
public Object getService(String beanId)
beanId - The id of the service
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||