Examples of pushInstance()


Examples of org.auraframework.instance.InstanceStack.pushInstance()

        Instance<?> parent = instanceStack.peek();

        this.descriptor = descriptor;
        this.originalDescriptor = descriptor;
        this.path = instanceStack.getPath();
        instanceStack.pushInstance(this, descriptor);

        if (def == null) {
            try {
                def = descriptor.getDef();
                if (extender == null && (def.isAbstract() || def.getLocalProviderDef() != null)) {
View Full Code Here

Examples of org.auraframework.instance.InstanceStack.pushInstance()

     * @param modelDef the definition for the model.
     */
    public JavaModel(JavaModelDefImpl modelDef) {
        this.modelDef = modelDef;
        InstanceStack iStack = Aura.getContextService().getCurrentContext().getInstanceStack();
        iStack.pushInstance(this, modelDef.getDescriptor());
        iStack.setAttributeName("m");
        this.path = iStack.getPath();
        try {
            if (modelDef.isBean()) {
                this.bean = Aura.getBeanAdapter().getModelBean(modelDef);
View Full Code Here

Examples of org.auraframework.instance.InstanceStack.pushInstance()

                // boolean reverse = (Boolean)atts.getValue("reverse");
                iStack.setAttributeName("body");
                for (int i = realstart; i < realend; i++) {
                    iStack.setAttributeIndex(i);
                    iStack.pushInstance(component, component.getDescriptor());
                    iStack.setAttributeName("body");
                    Map<String, Object> providers = Maps.newHashMap();
                    providers.put(var, items.get(i));
                    if (indexVar != null) {
                        providers.put(indexVar, i);
View Full Code Here

Examples of org.auraframework.instance.InstanceStack.pushInstance()

    private final String path;

    public EventImpl(DefDescriptor<EventDef> eventDefDescriptor, Map<String, Object> attributes,
            BaseComponent<?, ?> valueProvider) throws QuickFixException {
      InstanceStack iStack = Aura.getContextService().getCurrentContext().getInstanceStack();
      iStack.pushInstance(this, eventDefDescriptor);
        this.path = iStack.getPath();
        this.eventDefDescriptor = eventDefDescriptor;
        this.attributeSet = new AttributeSetImpl(eventDefDescriptor, valueProvider, this);
        this.attributeSet.set(attributes);
        iStack.popInstance(this);
View Full Code Here

Examples of org.auraframework.instance.InstanceStack.pushInstance()

    private final String path;

    public JavascriptModel(JavascriptModelDef modelDef) {
        this.modelDef = modelDef;
        InstanceStack iStack = Aura.getContextService().getCurrentContext().getInstanceStack();
        iStack.pushInstance(this, modelDef.getDescriptor());
        iStack.setAttributeName("m");
        this.path = iStack.getPath();
        for (JavascriptValueDef member : this.modelDef.getAllMembers()) {
            bean.put(member.getName(), clone(member.getDefaultValue()));
        }
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.