public class TestComponentManagerContainer extends Object
| Constructor and Description |
|---|
TestComponentManagerContainer(String configPaths) |
TestComponentManagerContainer(String configPaths,
Properties props)
create a component manager based on a list of component.xml
|
| Modifier and Type | Method and Description |
|---|---|
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) |
public TestComponentManagerContainer(String configPaths) throws IOException
IOExceptionpublic TestComponentManagerContainer(String configPaths, Properties props) throws IOException
configPaths - a ';' seperated list of xml bean config filesIOExceptionpublic 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 behavepublic static void setSakaiHome(String sakaiHome)
Copyright © 2003–2020 Sakai Project. All rights reserved.