Examples of pushCallingDescriptor()


Examples of org.auraframework.system.AuraContext.pushCallingDescriptor()

     *
     * @throws QuickFixException
     */
    private void createModel() throws QuickFixException {
        AuraContext context = Aura.getContextService().getCurrentContext();
        context.pushCallingDescriptor(descriptor);
        BaseComponent<?, ?> oldComponent = context.setCurrentComponent(this);
        try {
            ModelDef modelDef = getComponentDef().getModelDef();
            if (modelDef != null) {
                Aura.getDefinitionService().getDefRegistry().assertAccess(descriptor, modelDef);
View Full Code Here

Examples of org.auraframework.system.AuraContext.pushCallingDescriptor()

    // FIXME - move to builder
    @Override
    protected void injectComponent() throws QuickFixException {
        if (this.intfDescriptor != null) {
            AuraContext context = Aura.getContextService().getCurrentContext();
            context.pushCallingDescriptor(descriptor);
            BaseComponent<?, ?> oldComponent = context.setCurrentComponent(new ProtoComponentImpl(descriptor,
                    getGlobalId(), attributeSet));
            try {
                RootDefinition root = intfDescriptor.getDef();
                ProviderDef providerDef = root.getLocalProviderDef();
View Full Code Here

Examples of org.auraframework.system.AuraContext.pushCallingDescriptor()

            if (preloaded) {
                json.writeValue(descriptor);
            } else {
                json.writeMapBegin();
                json.writeMapEntry("descriptor", descriptor);
                context.pushCallingDescriptor(descriptor);
                try {
                    RendererDef rendererDef = getRendererDef();
                    if (rendererDef != null && !rendererDef.isLocal()) {
                        json.writeMapEntry("rendererDef", rendererDef);
                    }
View Full Code Here

Examples of org.auraframework.system.AuraContext.pushCallingDescriptor()

     * @see ComponentDef#getModelDef()
     */
    @Override
    public ModelDef getModelDef() throws QuickFixException {
        AuraContext context = Aura.getContextService().getCurrentContext();
        context.pushCallingDescriptor(descriptor);
        try {
            return modelDefDescriptor == null ? null : modelDefDescriptor.getDef();
        } finally {
            context.popCallingDescriptor();
        }
View Full Code Here

Examples of org.auraframework.system.AuraContext.pushCallingDescriptor()

            return (T) new ApplicationImpl((DefDescriptor<ApplicationDef>) descriptor, attributes);
        case COMPONENT:
            return (T) new ComponentImpl((DefDescriptor<ComponentDef>) descriptor, attributes);
        case ACTION:
            AuraContext context = Aura.getContextService().getCurrentContext();
            context.pushCallingDescriptor(descriptor);
            try {
                ControllerDef controllerDef = ((SubDefDescriptor<ActionDef, ControllerDef>) descriptor)
                        .getParentDescriptor().getDef();
                return (T) controllerDef.createAction(descriptor.getName(), attributes);
            } finally {
View Full Code Here

Examples of org.auraframework.system.AuraContext.pushCallingDescriptor()

    @Override
    protected void readAttributes() throws QuickFixException {
        super.readAttributes();
        AuraContext context = Aura.getContextService().getCurrentContext();
        context.pushCallingDescriptor(getDefDescriptor());
        try {
            String extendsNames = getAttributeValue(ATTRIBUTE_EXTENDS);
            if (extendsNames != null) {
                for (String extendsName : AuraTextUtil.splitSimple(",", extendsNames)) {
                    builder.extendsDescriptors.add(DefDescriptorImpl.getInstance(extendsName.trim(), InterfaceDef.class));
View Full Code Here

Examples of org.auraframework.system.AuraContext.pushCallingDescriptor()

    @SuppressWarnings("unchecked")
    @Override
    protected void readAttributes() throws QuickFixException {
        AuraContext context = Aura.getContextService().getCurrentContext();
        MasterDefRegistry mdr = context.getDefRegistry();
        context.pushCallingDescriptor(builder.getDescriptor());
        try {
            Mode mode = context.getMode();

            super.readAttributes();
            String controllerName = getAttributeValue(ATTRIBUTE_CONTROLLER);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.