/** * Create a FractalHelper instance. * * @throws ADLException : * occurs when it is impossible to get the fractal explorer */ private FractalHelper() throws ADLException { super(); // check required fractal properties System.setProperty("fractal.provider", "org.objectweb.fractal.julia.Julia"); System.setProperty("julia.loader", "org.objectweb.fractal.julia.loader.DynamicLoader"); System.setProperty("julia.config", "julia.cfg,julia-dream.cfg,julia-dream-activities.cfg"); // Create Fractal ADL factories FractalHelper.context = new HashMap<String, Object>(); FractalHelper.factory = FactoryFactory.getFactory( FactoryFactory.FRACTAL_BACKEND, FractalHelper.context); }
if (adlFactory == null) { adlFactory = FactoryFactory .getFactory(FactoryFactory.FRACTAL_BACKEND);
/** * Return the the default configuration of the BindingFactory. * * @return * @throws BindingFactoryException */ public static synchronized BindingFactory getBindingFactory() throws BindingFactoryException { try { if (SINGLETON == null) { if (adlFactory == null) { adlFactory = FactoryFactory .getFactory(FactoryFactory.FRACTAL_BACKEND); } Component bf = (Component) adlFactory.newComponent( "org.objectweb.fractal.bf.BindingFactoryComp", new HashMap<String, String>()); Fractal.getLifeCycleController(bf).startFc(); SINGLETON = (BindingFactory) bf .getFcInterface("binding-factory"); } } catch (Exception e) { throw new BindingFactoryException( "Some error occurred while retrieving the BindingFactory", e); } return SINGLETON; }
fractalAdlFactory = FactoryFactory.getFactory(FactoryFactory.FRACTAL_BACKEND);
org.objectweb.fractal.adl.Factory fractalAdlFactory = FactoryFactory.getFactory(FactoryFactory.FRACTAL_BACKEND);