1 23 24 package org.objectweb.fractal.adl.components; 25 26 import org.objectweb.fractal.api.Component; 27 import org.objectweb.fractal.api.NoSuchInterfaceException; 28 import org.objectweb.fractal.util.Fractal; 29 30 34 35 public class FractalComponentBuilder implements ComponentBuilder { 36 37 41 public void addComponent ( 42 final Object superComponent, 43 final Object subComponent, 44 final String name, 45 final Object context) throws Exception 46 { 47 Fractal.getContentController((Component)superComponent) 48 .addFcSubComponent((Component)subComponent); 49 try { 50 Fractal.getNameController((Component)subComponent).setFcName(name); 51 } catch (NoSuchInterfaceException ignored) { 52 } 53 } 54 55 public void startComponent (final Object component, final Object context) 56 throws Exception 57 { 58 65 } 66 } 67 | Popular Tags |