*/
public void start() throws LifecycleException
{
if (started)
{
throw new LifecycleException(sm.getString("workflowLoader.alreadyStarted"));
}
log.debug(sm.getString("workflowLoader.starting"));
lifecycle.fireLifecycleEvent(START_EVENT, null);
started = true;
// Construct a class loader based on our current repositories list
try
{
classLoader = createClassLoader();
classLoader.setDebug(this.debug);
classLoader.setDelegate(this.delegate);
for (int i = 0; i < repositories.length; i++)
{
classLoader.addRepository(repositories[i]);
}
// Configure our repositories
setRepositories();
setClassPath();
setPermissions();
if (classLoader instanceof Lifecycle)
{
((Lifecycle) classLoader).start();
}
}
catch (Throwable t)
{
log.error("LifecycleException ", t);
throw new LifecycleException("start: ", t);
}
}