Package org.auraframework.service

Examples of org.auraframework.service.BuilderService


        this(createMap(descriptor));
    }

    @Override
    protected void fix() throws QuickFixException {
        BuilderService builderService = Aura.getBuilderService();
        DefinitionService definitionService = Aura.getDefinitionService();
        String descriptors = (String) getAttributes().get("descriptor");
        String[] split = descriptorPattern.split(descriptors);
        for (String descriptor : split) {
            ComponentDef def = builderService.getComponentDefBuilder().setDescriptor(descriptor).build();
            definitionService.save(def);

            if (getBooleanAttribute("client.css")) {
                DefDescriptor<StyleDef> styleDescriptor = definitionService.getDefDescriptor(def.getDescriptor(),
                        "css", StyleDef.class);
View Full Code Here


    }

    @SuppressWarnings("unchecked")
    @Override
    protected void fix() throws QuickFixException {
        BuilderService builderService = Aura.getBuilderService();
        DefinitionService definitionService = Aura.getDefinitionService();

        DefDescriptor<StyleDef> styleDescriptor = (DefDescriptor<StyleDef>) getAttributes().get("descriptor");
        StyleDefBuilder builder = builderService.getStyleDefBuilder();

        builder.setDescriptor(styleDescriptor);
        builder.setClassName(styleDescriptor.getNamespace() + AuraTextUtil.initCap(styleDescriptor.getName()));
        StyleDef styleDef = builder.build();
        definitionService.save(styleDef);
View Full Code Here

        this(createMap(descriptor));
    }

    @Override
    protected void fix() throws QuickFixException {
        BuilderService builderService = Aura.getBuilderService();
        DefinitionService definitionService = Aura.getDefinitionService();
        String descriptors = (String) getAttributes().get("descriptor");
        String[] split = CreateComponentDefQuickFix.descriptorPattern.split(descriptors);
        for (String descriptor : split) {
            ApplicationDef def = builderService.getApplicationDefBuilder().setDescriptor(descriptor).build();
            definitionService.save(def);

            if (getBooleanAttribute("client.css")) {
                DefDescriptor<StyleDef> styleDescriptor = definitionService.getDefDescriptor(def.getDescriptor(),
                        "css", StyleDef.class);
View Full Code Here

        return ret;
    }

    @Override
    protected void fix() throws Exception {
        BuilderService builderService = Aura.getBuilderService();
        DefinitionService definitionService = Aura.getDefinitionService();
        String descriptors = (String) getAttributes().get("descriptor");
        String[] split = CreateComponentDefQuickFix.descriptorPattern.split(descriptors);
        for (String descriptor : split) {
            ThemeDef def = builderService.getThemeDefBuilder().setDescriptor(descriptor).build();
            definitionService.save(def);
            resetCache(def.getDescriptor());
        }
    }
View Full Code Here

        File f = new File(source.getUrl().replace("file:", ""));
        deleteFileOnTeardown(f);
        deleteFileOnTeardown(f.getParentFile());

        // Save file to filesystem and wait for source change to clear caches
        BuilderService builderService = Aura.getBuilderService();
        ComponentDef def = builderService.getComponentDefBuilder().setDescriptor(cmpDesc).build();
        Aura.getDefinitionService().save(def);

        // Make sure we actually have something to clear from the cache before verifying it's not in there.
        // if (!isInDefsCache(cmpDesc, mdr)) {
        //    fail("Test setup failure: def not added to MasterDefRegistry cache");
View Full Code Here

    public void setUp() throws Exception {
        super.setUp();
        Aura.getContextService().startContext(Mode.SELENIUM, Format.JSON, Authentication.AUTHENTICATED);

        // Build component where the new attribute is created
        BuilderService builderService = Aura.getBuilderService();
        DefinitionService definitionService = Aura.getDefinitionService();
        ComponentDef def = builderService.getComponentDefBuilder().setDescriptor(defDescriptor).build();
        definitionService.save(def);
    }
View Full Code Here

TOP

Related Classes of org.auraframework.service.BuilderService

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.