Package org.auraframework.impl.java.controller.JavaControllerDefImpl

Examples of org.auraframework.impl.java.controller.JavaControllerDefImpl.Builder


    private static Map<DefDescriptor<ControllerDef>, ControllerDef> getDefs() {

        Map<DefDescriptor<ControllerDef>, ControllerDef> ret = Maps.newHashMap();

        // Add Component Controller
        Builder builder = getControllerBuilder(ComponentController.class, COMPONENT_CONTROLLER);
        ret.put(builder.getDescriptor(), builder.build());

        // Add Label Controller
        builder = getControllerBuilder(LabelController.class, LABEL_CONTROLLER);
        // FIXME="need an md5";
        ret.put(builder.getDescriptor(), builder.build());
       
        // Add TimeZoneInfo Controller
        builder = getControllerBuilder(TimeZoneInfoController.class, TIMEZONEINFO_CONTROLLER);
        ret.put(builder.getDescriptor(), builder.build());

        return ret;
    }
View Full Code Here


    private static Builder getControllerBuilder(Class<?> controller, String qualifiedName) {

        DefDescriptor<ControllerDef> controllerDesc = Aura.getDefinitionService()
                .getDefDescriptor(qualifiedName, ControllerDef.class);

        Builder builder = new Builder();
        try {
            builder.setActionMap(JavaControllerDefFactory.createActions(controller, controllerDesc, false));
        } catch (QuickFixException qfe) {
            throw new AuraUnhandledException("Broken Controller: " + qualifiedName, qfe);
        }
        builder.setControllerClass(controller);
        builder.setLocation(qualifiedName, -1);
        builder.setDescriptor(controllerDesc);

        return builder;
    }
View Full Code Here

TOP

Related Classes of org.auraframework.impl.java.controller.JavaControllerDefImpl.Builder

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.