public Definition load(final String name, final Map<Object, Object> context) throws ADLException { final Definition d = clientLoader.load(name, context); return astTransformerItf.toStringTemplateAST(d); }
protected Object newCeciliaComponent(final String name, final Map<Object, Object> context) throws ADLException { if (FractalADLLogManager.STEP.isLoggable(Level.FINE)) FractalADLLogManager.STEP.fine("[basic-factory] Load ADL \'" + name + "\'"); final Definition d = loaderItf.load(name, context); FractalADLLogManager.STEP .fine("[basic-factory] ADL loaded successfully, build task graph"); return compile(d, context); }
/** * @see org.objectweb.fractal.adl.Loader#load(java.lang.String, * java.util.Map) */ public Definition load(String name, Map<Object, Object> context) throws ADLException { Definition d = clientLoader.load(name, context); checkNode(d); return d; }
protected TemplateComponent getTemplate(final String groupName) { try { return (TemplateComponent) loaderItf.load(groupName, new HashMap<Object, Object>()); } catch (final ADLException e) { error("Cannot load group file '" + groupName + "'.", e); return null; } }
/** * @param name name * @param context context * @throws ADLException exception * @return definition */ public Definition load(final String name, final Map context) throws ADLException { Definition d = clientLoader.load(name, context); checkNode(d); return d; }
public Definition load(final String name, final Map context) throws ADLException { Definition d = clientLoader.load(name, context); boolean extend = false; if (d instanceof ComponentDefinition) { extend = ((ComponentDefinition) d).getExtends() != null; } checkNode(d, extend, context); return d; }
@Override @SuppressWarnings("unchecked") public Object newComponent(final String name, final Map context) throws ADLException { final String soDir = (String) context.get("executable-name") + File.separator; final String buildDirectory = ((File) context.get("adlBuildDirectory")) .getParent() + File.separator; /* Load the fractal file using extensions for deployment */ final Definition d = deployLoaderItf.load(name, context); // If the loaded definition is a deployable one, it means we need to compile // several components, stubs and skeletons, loader ... if (d instanceof DeployableDefinition) { final ExtendedDeployableComposite deploymentComposite = new ExtendedDeployableComposite( (ComponentContainer) d); deploymentComposite.genSources(context); deploymentComposite.compile(this, context, soDir, buildDirectory); return null; } else { // Otherwise, we just need to compile one component with the classic way return compile(d, context); } }
public Definition load(final String name, final Map<Object, Object> context) throws ADLException { final Definition d = clientLoader.load(name, context); // Enrich the AST final CeciliaImprover ci = new CeciliaImprover(); ci.improve(d); final DeploymentImprover di = new DeploymentImprover(); di.improve(d); return d; }