*/
public void start() throws LifecycleException {
// Validate and update our current component state
if (started)
throw new LifecycleException
(sm.getString("standardLoader.alreadyStarted"));
started = true;
// Validate the specified repositories
Vector files = new Vector();
Enumeration names = repositories.elements();
while (names.hasMoreElements()) {
File file = new File((String) names.nextElement());
files.addElement(file);
String path = null;
try {
path = file.getCanonicalPath();
} catch (IOException e) {
path = "UNKNOWN";
}
if (!file.exists())
throw new LifecycleException
(sm.getString("standardLoader.exists", path));
else if (!file.canRead())
throw new LifecycleException
(sm.getString("standardLoader.read", path));
else if (!checkType(file))
throw new LifecycleException
(sm.getString("standardLoader.type", path));
}
// Construct a new class loader instance for our use
try {
classLoader = new AdaptiveClassLoader(files);
} catch (IllegalArgumentException e) {
throw new LifecycleException("start: ", e);
}
}