/**
* Lookups the configured packages and loads the classes that will be
* available in the client-side scripts.
*/
private void loadClientComponents() {
ScriptComponentScanner scanner = new ScriptComponentScanner(
context.getLookupPackages(), context.getClassLoader());
scanner.scan();
for (Class<?> clazz : scanner.getClasses()) {
engine.registerClass(clazz, this.context.getClassLoader());
}
}