Package org.auraframework.throwable.quickfix

Examples of org.auraframework.throwable.quickfix.DefinitionNotFoundException


                    Location l = null;
                    if (parent != null) {
                        l = parent.getLocation();
                    }
                    stack.remove(descriptor);
                    throw new DefinitionNotFoundException(descriptor, l, stack.toString());
                }
                // get client libs
                if (cc.clientLibs != null && cd.def instanceof BaseComponentDef) {
                    BaseComponentDef baseComponent = (BaseComponentDef) cd.def;
                    baseComponent.addClientLibs(cc.clientLibs);
View Full Code Here


            StringBuilder sb = new StringBuilder(256);
            Hash.StringBuilder globalBuilder = new Hash.StringBuilder();
            for (CompilingDef<?> cd : compiled) {
                if (cd.def == null) {
                    // actually, this should never happen.
                    throw new DefinitionNotFoundException(cd.descriptor);
                }

                deps.add(cd.descriptor);

                //
View Full Code Here

            for (DefDescriptor<?> dd : de.dependencies) {
                validateHelper(dd);
            }
            for (CompilingDef<?> compiling : currentCC.compiled.values()) {
                if (!fillCompilingDef(compiling, currentCC.context)) {
                    throw new DefinitionNotFoundException(descriptor);
                }
            }
            finishValidation();
        } finally {
            currentCC = null;
View Full Code Here

        DefDescriptor<ComponentDef> cmpDesc = DefDescriptorImpl.getInstance(this.descriptor.getQualifiedName(),
                ComponentDef.class);

        ComponentDef cmp = cmpDesc.getDef();
        if (cmp == null) {
            throw new DefinitionNotFoundException(cmpDesc, getLocation());
        }

        if (!attributeDesignDefs.isEmpty()) {
            for (AttributeDesignDef attrDesignDef : attributeDesignDefs.values()) {
                AttributeDef attr = cmp.getAttributeDef(attrDesignDef.getName());
                if (attr == null) {
                    throw new DefinitionNotFoundException(DefDescriptorImpl.getInstance(attrDesignDef.getName(),
                            AttributeDef.class));
                }
            }
        }
View Full Code Here

        MasterDefRegistry registry = Aura.getDefinitionService().getDefRegistry();
        for (DefDescriptor<InterfaceDef> extended : extendsDescriptors) {
            InterfaceDef def = extended.getDef();
            if (def == null) {
                throw new DefinitionNotFoundException(extended, getLocation());
            }
           
            if (extended.equals(descriptor)) {
                throw new InvalidDefinitionException(String.format("%s cannot extend itself", getDescriptor()),
                        getLocation());
View Full Code Here

    public ThemeDefHandler(DefDescriptor<ThemeDef> defDescriptor, Source<ThemeDef> source, XMLStreamReader xmlReader)
            throws DefinitionNotFoundException {
        super(defDescriptor, source, xmlReader);

        if (!isInPrivilegedNamespace()) {
            throw new DefinitionNotFoundException(defDescriptor);
        }

        builder.setOwnHash(source.getHash());
    }
View Full Code Here

    public ClientLibraryDefHandler(RootTagHandler<P> parentHandler, XMLStreamReader xmlReader, Source<?> source) throws DefinitionNotFoundException {
        super(parentHandler, xmlReader, source);
       
        if (!isInPrivilegedNamespace()) {
            throw new DefinitionNotFoundException(Aura.getDefinitionService().getDefDescriptor(TAG, ComponentDef.class));
        }
       
        this.builder = new ClientLibraryDefImpl.Builder();
        this.builder.setLocation(getLocation());
        this.builder.setParentDescriptor(parentHandler.getDefDescriptor());
View Full Code Here

        // extends
        if (extendsDescriptor != null) {
            // check if it exists
            if (extendsDescriptor.getDef() == null) {
                throw new DefinitionNotFoundException(extendsDescriptor, getLocation());
            }

            // can't extend itself
            if (extendsDescriptor.equals(descriptor)) {
                String msg = String.format("Theme %s cannot extend itself", descriptor);
View Full Code Here

    public DependencyDefHandler(RootTagHandler<P> parentHandler, XMLStreamReader xmlReader, Source<?> source) throws DefinitionNotFoundException {
        super(parentHandler, xmlReader, source);
       
        if (!isInPrivilegedNamespace()) {
          throw new DefinitionNotFoundException(Aura.getDefinitionService().getDefDescriptor(TAG, ComponentDef.class));
        }

        this.builder = new DependencyDefImpl.Builder();
        this.builder.setLocation(getLocation());
        this.builder.setParentDescriptor(parentHandler.getDefDescriptor());
View Full Code Here

    @Override
    public void validateReferences() throws QuickFixException {
        RootDefinition rootDef = getComponentDef();
        if (rootDef == null) {
            throw new DefinitionNotFoundException(descriptor);
        }
       
        AuraContext context = Aura.getContextService().getCurrentContext();
        DefDescriptor<?> referencingDesc = context.getCurrentCallingDescriptor();
      if (referencingDesc != null) {
View Full Code Here

TOP

Related Classes of org.auraframework.throwable.quickfix.DefinitionNotFoundException

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.