/** * Returns the tree corresponding to the given controller descriptor. This * tree is found by using the {@link #_this_weaveableL} loader. It must have * the format specified in {@link * org.objectweb.fractal.julia.asm.ContextClassGenerator} * * @param controllerDesc * a string referencing a true controller descriptor. * @return the tree corresponding to the given controller descriptor. * @throws InstantiationException * if the tree cannot be loaded. */ public Tree getFcControllerDescriptor(final Object controllerDesc) throws InstantiationException { Map definitions = new HashMap(); definitions.put("attributeControllerInterface", new Tree("QUOTE")); definitions.put("interfaceName", new Tree("QUOTE")); try { return _this_weaveableL.evalTree(_this_weaveableL .loadTree((String) controllerDesc), definitions); } catch (Exception e) { throw new ChainedInstantiationException(e, null, "Cannot load the '" + controllerDesc + "' controller descriptor"); } }
hints.put("julia.config", juliaCfg); try { _this_weaveableL.init(hints); } catch (Exception e) { e.printStackTrace(); initializationContextClass = _this_weaveableL.loadClass( componentTree, loader); } catch (Exception e) { hints.put("julia.config", juliaConfig); try { _this_weaveableL.init(hints); } catch (Exception e) { e.printStackTrace();
initializationContextClass = _this_weaveableL.loadClass( componentTree, loader); } catch (Exception e) {
loader = (Loader) getClass().getClassLoader().loadClass(boot) .newInstance(); loader.init(context); } catch (final Exception e) { throw new InstantiationException("Cannot find or instantiate the '" "bootstrap", null); try { ((Loader) bootstrap.getFcInterface("loader")).init(context); } catch (final NoSuchInterfaceException ignored) {
try { loader = (Loader)Thread.currentThread().getContextClassLoader().loadClass(boot).newInstance(); loader.init(context); } catch (Exception e) { bootstrapComponent = genericFactory.newFcInstance(t, "bootstrap", null); try { ((Loader)bootstrapComponent.getFcInterface("loader")).init(context); } catch (NoSuchInterfaceException ignored) {