/** * Returns a bootstrap component to create other components. This method * just calls the corresponding method of the * <tt>org.objectweb.fractal.api.Fractal</tt> class. * * @return a bootstrap component to create other components. * @throws InstantiationException if the bootstrap component cannot be * created. */ public static Component getBootstrapComponent () throws InstantiationException { return org.objectweb.fractal.api.Fractal.getBootstrapComponent(); }
public Component newFcControllerInstance () throws InstantiationException { if (fcContent[1] instanceof Component) { return (Component)fcContent[1]; } GenericFactory factory; try { factory = (GenericFactory)Fractal.getBootstrapComponent(). getFcInterface("generic-factory"); } catch (InstantiationException e) { throw new ChainedInstantiationException( e, _this_weaveableC, "Cannot find the GenericFactory interface of the bootstrap " + "component, which is needed to instantiate the template"); } catch (NoSuchInterfaceException e) { throw new ChainedInstantiationException( e, _this_weaveableC, "Cannot find the GenericFactory interface of the bootstrap " + "component, which is needed to instantiate the template"); } return factory.newFcInstance(fcInstanceType, fcContent[0], fcContent[1]); }
public Component newFcControllerInstance () throws InstantiationException { if (fcContent[1] instanceof Component) { return (Component)fcContent[1]; } GenericFactory factory; try { factory = (GenericFactory)Fractal.getBootstrapComponent(). getFcInterface("generic-factory"); } catch (InstantiationException e) { throw new ChainedInstantiationException( e, _this_weaveableC, "Cannot find the GenericFactory interface of the bootstrap " + "component, which is needed to instantiate the template"); } catch (NoSuchInterfaceException e) { throw new ChainedInstantiationException( e, _this_weaveableC, "Cannot find the GenericFactory interface of the bootstrap " + "component, which is needed to instantiate the template"); } return factory.newFcInstance(fcInstanceType, fcContent[0], fcContent[1]); }