public class ComponentsLoader extends Object
Load the available Sakai components into the shared component manager's Spring ApplicationContext
| Constructor and Description |
|---|
ComponentsLoader() |
ComponentsLoader(File overridesFolder) |
| Modifier and Type | Method and Description |
|---|---|
void |
load(org.springframework.context.ConfigurableApplicationContext ac,
String componentsRoot) |
protected void |
loadComponentPackage(File dir,
org.springframework.context.ConfigurableApplicationContext ac)
Load one component package into the AC
|
protected ClassLoader |
newPackageClassLoader(File dir)
Create the class loader for this component package
|
protected boolean |
validComponentsPackage(File dir)
Test if this File is a valid components package directory.
|
public ComponentsLoader()
public ComponentsLoader(File overridesFolder)
public void load(org.springframework.context.ConfigurableApplicationContext ac,
String componentsRoot)
protected void loadComponentPackage(File dir, org.springframework.context.ConfigurableApplicationContext ac)
dir - The file path to the component packageac - The ApplicationContext to load intoprotected boolean validComponentsPackage(File dir)
dir - The file to testprotected ClassLoader newPackageClassLoader(File dir)
dir - The package's root directory.Copyright © 2003–2020 Sakai Project. All rights reserved.