Java Code Examples for com.sun.xml.internal.xsom.XSComponent#getOwnerSchema()

The following examples show how to use com.sun.xml.internal.xsom.XSComponent#getOwnerSchema() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BGMBuilder.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Derives a name from a schema component.
 *
 * This method handles prefix/suffix modification and
 * XML-to-Java name conversion.
 *
 * @param name
 *      The base name. This should be things like element names
 *      or type names.
 * @param comp
 *      The component from which the base name was taken.
 *      Used to determine how names are modified.
 */
public String deriveName( String name, XSComponent comp ) {
    XSSchema owner = comp.getOwnerSchema();

    name = getNameConverter().toClassName(name);

    if( owner!=null ) {
        BISchemaBinding sb = getBindInfo(owner).get(BISchemaBinding.class);

        if(sb!=null)    name = sb.mangleClassName(name,comp);
    }

    return name;
}
 
Example 2
Source File: BGMBuilder.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Derives a name from a schema component.
 *
 * This method handles prefix/suffix modification and
 * XML-to-Java name conversion.
 *
 * @param name
 *      The base name. This should be things like element names
 *      or type names.
 * @param comp
 *      The component from which the base name was taken.
 *      Used to determine how names are modified.
 */
public String deriveName( String name, XSComponent comp ) {
    XSSchema owner = comp.getOwnerSchema();

    name = getNameConverter().toClassName(name);

    if( owner!=null ) {
        BISchemaBinding sb = getBindInfo(owner).get(BISchemaBinding.class);

        if(sb!=null)    name = sb.mangleClassName(name,comp);
    }

    return name;
}
 
Example 3
Source File: Axis.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public Iterator<XSSchema> iterator(Iterator<? extends XSComponent> contextNodes) {
    return new Iterators.Adapter<XSSchema,XSComponent>(contextNodes) {
        protected XSSchema filter(XSComponent u) {
            return u.getOwnerSchema();
        }
    };
}
 
Example 4
Source File: BGMBuilder.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Derives a name from a schema component.
 *
 * This method handles prefix/suffix modification and
 * XML-to-Java name conversion.
 *
 * @param name
 *      The base name. This should be things like element names
 *      or type names.
 * @param comp
 *      The component from which the base name was taken.
 *      Used to determine how names are modified.
 */
public String deriveName( String name, XSComponent comp ) {
    XSSchema owner = comp.getOwnerSchema();

    name = getNameConverter().toClassName(name);

    if( owner!=null ) {
        BISchemaBinding sb = getBindInfo(owner).get(BISchemaBinding.class);

        if(sb!=null)    name = sb.mangleClassName(name,comp);
    }

    return name;
}
 
Example 5
Source File: Axis.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public Iterator<XSSchema> iterator(Iterator<? extends XSComponent> contextNodes) {
    return new Iterators.Adapter<XSSchema,XSComponent>(contextNodes) {
        protected XSSchema filter(XSComponent u) {
            return u.getOwnerSchema();
        }
    };
}
 
Example 6
Source File: Axis.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public Iterator<XSSchema> iterator(Iterator<? extends XSComponent> contextNodes) {
    return new Iterators.Adapter<XSSchema,XSComponent>(contextNodes) {
        protected XSSchema filter(XSComponent u) {
            return u.getOwnerSchema();
        }
    };
}
 
Example 7
Source File: Axis.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public Iterator<XSSchema> iterator(Iterator<? extends XSComponent> contextNodes) {
    return new Iterators.Adapter<XSSchema,XSComponent>(contextNodes) {
        protected XSSchema filter(XSComponent u) {
            return u.getOwnerSchema();
        }
    };
}
 
Example 8
Source File: Axis.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public Iterator<XSSchema> iterator(Iterator<? extends XSComponent> contextNodes) {
    return new Iterators.Adapter<XSSchema,XSComponent>(contextNodes) {
        protected XSSchema filter(XSComponent u) {
            return u.getOwnerSchema();
        }
    };
}
 
Example 9
Source File: BGMBuilder.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Derives a name from a schema component.
 *
 * This method handles prefix/suffix modification and
 * XML-to-Java name conversion.
 *
 * @param name
 *      The base name. This should be things like element names
 *      or type names.
 * @param comp
 *      The component from which the base name was taken.
 *      Used to determine how names are modified.
 */
public String deriveName( String name, XSComponent comp ) {
    XSSchema owner = comp.getOwnerSchema();

    name = getNameConverter().toClassName(name);

    if( owner!=null ) {
        BISchemaBinding sb = getBindInfo(owner).get(BISchemaBinding.class);

        if(sb!=null)    name = sb.mangleClassName(name,comp);
    }

    return name;
}
 
Example 10
Source File: BGMBuilder.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Derives a name from a schema component.
 *
 * This method handles prefix/suffix modification and
 * XML-to-Java name conversion.
 *
 * @param name
 *      The base name. This should be things like element names
 *      or type names.
 * @param comp
 *      The component from which the base name was taken.
 *      Used to determine how names are modified.
 */
public String deriveName( String name, XSComponent comp ) {
    XSSchema owner = comp.getOwnerSchema();

    name = getNameConverter().toClassName(name);

    if( owner!=null ) {
        BISchemaBinding sb = getBindInfo(owner).get(BISchemaBinding.class);

        if(sb!=null)    name = sb.mangleClassName(name,comp);
    }

    return name;
}
 
Example 11
Source File: Axis.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public Iterator<XSSchema> iterator(Iterator<? extends XSComponent> contextNodes) {
    return new Iterators.Adapter<XSSchema,XSComponent>(contextNodes) {
        protected XSSchema filter(XSComponent u) {
            return u.getOwnerSchema();
        }
    };
}
 
Example 12
Source File: BGMBuilder.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Derives a name from a schema component.
 *
 * This method handles prefix/suffix modification and
 * XML-to-Java name conversion.
 *
 * @param name
 *      The base name. This should be things like element names
 *      or type names.
 * @param comp
 *      The component from which the base name was taken.
 *      Used to determine how names are modified.
 */
public String deriveName( String name, XSComponent comp ) {
    XSSchema owner = comp.getOwnerSchema();

    name = getNameConverter().toClassName(name);

    if( owner!=null ) {
        BISchemaBinding sb = getBindInfo(owner).get(BISchemaBinding.class);

        if(sb!=null)    name = sb.mangleClassName(name,comp);
    }

    return name;
}
 
Example 13
Source File: BGMBuilder.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Derives a name from a schema component.
 *
 * This method handles prefix/suffix modification and
 * XML-to-Java name conversion.
 *
 * @param name
 *      The base name. This should be things like element names
 *      or type names.
 * @param comp
 *      The component from which the base name was taken.
 *      Used to determine how names are modified.
 */
public String deriveName( String name, XSComponent comp ) {
    XSSchema owner = comp.getOwnerSchema();

    name = getNameConverter().toClassName(name);

    if( owner!=null ) {
        BISchemaBinding sb = getBindInfo(owner).get(BISchemaBinding.class);

        if(sb!=null)    name = sb.mangleClassName(name,comp);
    }

    return name;
}
 
Example 14
Source File: ClassSelector.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
/**
 * The real meat of the "bindToType" code.
 *
 * @param cannotBeDelayed
 *      if the binding of the body of the class cannot be defered
 *      and needs to be done immediately. If the flag is false,
 *      the binding of the body will be done later, to avoid
 *      cyclic binding problem.
 * @param referer
 *      The component that refers to <tt>sc</tt>. This can be null,
 *      if figuring out the referer is too hard, in which case
 *      the error message might be less user friendly.
 */
// TODO: consider getting rid of "cannotBeDelayed"
CTypeInfo _bindToClass( @NotNull XSComponent sc, XSComponent referer, boolean cannotBeDelayed ) {
    // check if this class is already built.
    if(!bindMap.containsKey(sc)) {
        // craete a bind task

        // if this is a global declaration, make sure they will be generated
        // under a package.
        boolean isGlobal = false;
        if( sc instanceof XSDeclaration ) {
            isGlobal = ((XSDeclaration)sc).isGlobal();
            if( isGlobal )
                pushClassScope( new CClassInfoParent.Package(
                    getPackage(((XSDeclaration)sc).getTargetNamespace())) );
        }

        // otherwise check if this component should become a class.
        CElement bean = sc.apply(classBinder);

        if( isGlobal )
            popClassScope();

        if(bean==null)
            return null;

        // can this namespace generate a class?
        if (bean instanceof CClassInfo) {
            XSSchema os = sc.getOwnerSchema();
            BISchemaBinding sb = builder.getBindInfo(os).get(BISchemaBinding.class);
            if(sb!=null && !sb.map) {
                // nope
                getErrorReporter().error(sc.getLocator(),
                    Messages.ERR_REFERENCE_TO_NONEXPORTED_CLASS, sc.apply( new ComponentNameFunction() ) );
                getErrorReporter().error(sb.getLocation(),
                    Messages.ERR_REFERENCE_TO_NONEXPORTED_CLASS_MAP_FALSE, os.getTargetNamespace() );
                if(referer!=null)
                    getErrorReporter().error(referer.getLocator(),
                        Messages.ERR_REFERENCE_TO_NONEXPORTED_CLASS_REFERER, referer.apply( new ComponentNameFunction() ) );
            }
        }


        queueBuild( sc, bean );
    }

    Binding bind = bindMap.get(sc);
    if( cannotBeDelayed )
        bind.build();

    return bind.bean;
}
 
Example 15
Source File: ClassSelector.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
/**
 * The real meat of the "bindToType" code.
 *
 * @param cannotBeDelayed
 *      if the binding of the body of the class cannot be defered
 *      and needs to be done immediately. If the flag is false,
 *      the binding of the body will be done later, to avoid
 *      cyclic binding problem.
 * @param referer
 *      The component that refers to <tt>sc</tt>. This can be null,
 *      if figuring out the referer is too hard, in which case
 *      the error message might be less user friendly.
 */
// TODO: consider getting rid of "cannotBeDelayed"
CTypeInfo _bindToClass( @NotNull XSComponent sc, XSComponent referer, boolean cannotBeDelayed ) {
    // check if this class is already built.
    if(!bindMap.containsKey(sc)) {
        // craete a bind task

        // if this is a global declaration, make sure they will be generated
        // under a package.
        boolean isGlobal = false;
        if( sc instanceof XSDeclaration ) {
            isGlobal = ((XSDeclaration)sc).isGlobal();
            if( isGlobal )
                pushClassScope( new CClassInfoParent.Package(
                    getPackage(((XSDeclaration)sc).getTargetNamespace())) );
        }

        // otherwise check if this component should become a class.
        CElement bean = sc.apply(classBinder);

        if( isGlobal )
            popClassScope();

        if(bean==null)
            return null;

        // can this namespace generate a class?
        if (bean instanceof CClassInfo) {
            XSSchema os = sc.getOwnerSchema();
            BISchemaBinding sb = builder.getBindInfo(os).get(BISchemaBinding.class);
            if(sb!=null && !sb.map) {
                // nope
                getErrorReporter().error(sc.getLocator(),
                    Messages.ERR_REFERENCE_TO_NONEXPORTED_CLASS, sc.apply( new ComponentNameFunction() ) );
                getErrorReporter().error(sb.getLocation(),
                    Messages.ERR_REFERENCE_TO_NONEXPORTED_CLASS_MAP_FALSE, os.getTargetNamespace() );
                if(referer!=null)
                    getErrorReporter().error(referer.getLocator(),
                        Messages.ERR_REFERENCE_TO_NONEXPORTED_CLASS_REFERER, referer.apply( new ComponentNameFunction() ) );
            }
        }


        queueBuild( sc, bean );
    }

    Binding bind = bindMap.get(sc);
    if( cannotBeDelayed )
        bind.build();

    return bind.bean;
}
 
Example 16
Source File: ClassSelector.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
/**
 * The real meat of the "bindToType" code.
 *
 * @param cannotBeDelayed
 *      if the binding of the body of the class cannot be defered
 *      and needs to be done immediately. If the flag is false,
 *      the binding of the body will be done later, to avoid
 *      cyclic binding problem.
 * @param referer
 *      The component that refers to <tt>sc</tt>. This can be null,
 *      if figuring out the referer is too hard, in which case
 *      the error message might be less user friendly.
 */
// TODO: consider getting rid of "cannotBeDelayed"
CTypeInfo _bindToClass( @NotNull XSComponent sc, XSComponent referer, boolean cannotBeDelayed ) {
    // check if this class is already built.
    if(!bindMap.containsKey(sc)) {
        // craete a bind task

        // if this is a global declaration, make sure they will be generated
        // under a package.
        boolean isGlobal = false;
        if( sc instanceof XSDeclaration ) {
            isGlobal = ((XSDeclaration)sc).isGlobal();
            if( isGlobal )
                pushClassScope( new CClassInfoParent.Package(
                    getPackage(((XSDeclaration)sc).getTargetNamespace())) );
        }

        // otherwise check if this component should become a class.
        CElement bean = sc.apply(classBinder);

        if( isGlobal )
            popClassScope();

        if(bean==null)
            return null;

        // can this namespace generate a class?
        if (bean instanceof CClassInfo) {
            XSSchema os = sc.getOwnerSchema();
            BISchemaBinding sb = builder.getBindInfo(os).get(BISchemaBinding.class);
            if(sb!=null && !sb.map) {
                // nope
                getErrorReporter().error(sc.getLocator(),
                    Messages.ERR_REFERENCE_TO_NONEXPORTED_CLASS, sc.apply( new ComponentNameFunction() ) );
                getErrorReporter().error(sb.getLocation(),
                    Messages.ERR_REFERENCE_TO_NONEXPORTED_CLASS_MAP_FALSE, os.getTargetNamespace() );
                if(referer!=null)
                    getErrorReporter().error(referer.getLocator(),
                        Messages.ERR_REFERENCE_TO_NONEXPORTED_CLASS_REFERER, referer.apply( new ComponentNameFunction() ) );
            }
        }


        queueBuild( sc, bean );
    }

    Binding bind = bindMap.get(sc);
    if( cannotBeDelayed )
        bind.build();

    return bind.bean;
}
 
Example 17
Source File: ClassSelector.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * The real meat of the "bindToType" code.
 *
 * @param cannotBeDelayed
 *      if the binding of the body of the class cannot be defered
 *      and needs to be done immediately. If the flag is false,
 *      the binding of the body will be done later, to avoid
 *      cyclic binding problem.
 * @param referer
 *      The component that refers to <tt>sc</tt>. This can be null,
 *      if figuring out the referer is too hard, in which case
 *      the error message might be less user friendly.
 */
// TODO: consider getting rid of "cannotBeDelayed"
CTypeInfo _bindToClass( @NotNull XSComponent sc, XSComponent referer, boolean cannotBeDelayed ) {
    // check if this class is already built.
    if(!bindMap.containsKey(sc)) {
        // craete a bind task

        // if this is a global declaration, make sure they will be generated
        // under a package.
        boolean isGlobal = false;
        if( sc instanceof XSDeclaration ) {
            isGlobal = ((XSDeclaration)sc).isGlobal();
            if( isGlobal )
                pushClassScope( new CClassInfoParent.Package(
                    getPackage(((XSDeclaration)sc).getTargetNamespace())) );
        }

        // otherwise check if this component should become a class.
        CElement bean = sc.apply(classBinder);

        if( isGlobal )
            popClassScope();

        if(bean==null)
            return null;

        // can this namespace generate a class?
        if (bean instanceof CClassInfo) {
            XSSchema os = sc.getOwnerSchema();
            BISchemaBinding sb = builder.getBindInfo(os).get(BISchemaBinding.class);
            if(sb!=null && !sb.map) {
                // nope
                getErrorReporter().error(sc.getLocator(),
                    Messages.ERR_REFERENCE_TO_NONEXPORTED_CLASS, sc.apply( new ComponentNameFunction() ) );
                getErrorReporter().error(sb.getLocation(),
                    Messages.ERR_REFERENCE_TO_NONEXPORTED_CLASS_MAP_FALSE, os.getTargetNamespace() );
                if(referer!=null)
                    getErrorReporter().error(referer.getLocator(),
                        Messages.ERR_REFERENCE_TO_NONEXPORTED_CLASS_REFERER, referer.apply( new ComponentNameFunction() ) );
            }
        }


        queueBuild( sc, bean );
    }

    Binding bind = bindMap.get(sc);
    if( cannotBeDelayed )
        bind.build();

    return bind.bean;
}
 
Example 18
Source File: ClassSelector.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * The real meat of the "bindToType" code.
 *
 * @param cannotBeDelayed
 *      if the binding of the body of the class cannot be defered
 *      and needs to be done immediately. If the flag is false,
 *      the binding of the body will be done later, to avoid
 *      cyclic binding problem.
 * @param referer
 *      The component that refers to <tt>sc</tt>. This can be null,
 *      if figuring out the referer is too hard, in which case
 *      the error message might be less user friendly.
 */
// TODO: consider getting rid of "cannotBeDelayed"
CTypeInfo _bindToClass( @NotNull XSComponent sc, XSComponent referer, boolean cannotBeDelayed ) {
    // check if this class is already built.
    if(!bindMap.containsKey(sc)) {
        // craete a bind task

        // if this is a global declaration, make sure they will be generated
        // under a package.
        boolean isGlobal = false;
        if( sc instanceof XSDeclaration ) {
            isGlobal = ((XSDeclaration)sc).isGlobal();
            if( isGlobal )
                pushClassScope( new CClassInfoParent.Package(
                    getPackage(((XSDeclaration)sc).getTargetNamespace())) );
        }

        // otherwise check if this component should become a class.
        CElement bean = sc.apply(classBinder);

        if( isGlobal )
            popClassScope();

        if(bean==null)
            return null;

        // can this namespace generate a class?
        if (bean instanceof CClassInfo) {
            XSSchema os = sc.getOwnerSchema();
            BISchemaBinding sb = builder.getBindInfo(os).get(BISchemaBinding.class);
            if(sb!=null && !sb.map) {
                // nope
                getErrorReporter().error(sc.getLocator(),
                    Messages.ERR_REFERENCE_TO_NONEXPORTED_CLASS, sc.apply( new ComponentNameFunction() ) );
                getErrorReporter().error(sb.getLocation(),
                    Messages.ERR_REFERENCE_TO_NONEXPORTED_CLASS_MAP_FALSE, os.getTargetNamespace() );
                if(referer!=null)
                    getErrorReporter().error(referer.getLocator(),
                        Messages.ERR_REFERENCE_TO_NONEXPORTED_CLASS_REFERER, referer.apply( new ComponentNameFunction() ) );
            }
        }


        queueBuild( sc, bean );
    }

    Binding bind = bindMap.get(sc);
    if( cannotBeDelayed )
        bind.build();

    return bind.bean;
}
 
Example 19
Source File: ClassSelector.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * The real meat of the "bindToType" code.
 *
 * @param cannotBeDelayed
 *      if the binding of the body of the class cannot be defered
 *      and needs to be done immediately. If the flag is false,
 *      the binding of the body will be done later, to avoid
 *      cyclic binding problem.
 * @param referer
 *      The component that refers to {@code sc}. This can be null,
 *      if figuring out the referer is too hard, in which case
 *      the error message might be less user friendly.
 */
// TODO: consider getting rid of "cannotBeDelayed"
CTypeInfo _bindToClass( @NotNull XSComponent sc, XSComponent referer, boolean cannotBeDelayed ) {
    // check if this class is already built.
    if(!bindMap.containsKey(sc)) {
        // craete a bind task

        // if this is a global declaration, make sure they will be generated
        // under a package.
        boolean isGlobal = false;
        if( sc instanceof XSDeclaration ) {
            isGlobal = ((XSDeclaration)sc).isGlobal();
            if( isGlobal )
                pushClassScope( new CClassInfoParent.Package(
                    getPackage(((XSDeclaration)sc).getTargetNamespace())) );
        }

        // otherwise check if this component should become a class.
        CElement bean = sc.apply(classBinder);

        if( isGlobal )
            popClassScope();

        if(bean==null)
            return null;

        // can this namespace generate a class?
        if (bean instanceof CClassInfo) {
            XSSchema os = sc.getOwnerSchema();
            BISchemaBinding sb = builder.getBindInfo(os).get(BISchemaBinding.class);
            if(sb!=null && !sb.map) {
                // nope
                getErrorReporter().error(sc.getLocator(),
                    Messages.ERR_REFERENCE_TO_NONEXPORTED_CLASS, sc.apply( new ComponentNameFunction() ) );
                getErrorReporter().error(sb.getLocation(),
                    Messages.ERR_REFERENCE_TO_NONEXPORTED_CLASS_MAP_FALSE, os.getTargetNamespace() );
                if(referer!=null)
                    getErrorReporter().error(referer.getLocator(),
                        Messages.ERR_REFERENCE_TO_NONEXPORTED_CLASS_REFERER, referer.apply( new ComponentNameFunction() ) );
            }
        }


        queueBuild( sc, bean );
    }

    Binding bind = bindMap.get(sc);
    if( cannotBeDelayed )
        bind.build();

    return bind.bean;
}
 
Example 20
Source File: ClassSelector.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
/**
 * The real meat of the "bindToType" code.
 *
 * @param cannotBeDelayed
 *      if the binding of the body of the class cannot be defered
 *      and needs to be done immediately. If the flag is false,
 *      the binding of the body will be done later, to avoid
 *      cyclic binding problem.
 * @param referer
 *      The component that refers to <tt>sc</tt>. This can be null,
 *      if figuring out the referer is too hard, in which case
 *      the error message might be less user friendly.
 */
// TODO: consider getting rid of "cannotBeDelayed"
CTypeInfo _bindToClass( @NotNull XSComponent sc, XSComponent referer, boolean cannotBeDelayed ) {
    // check if this class is already built.
    if(!bindMap.containsKey(sc)) {
        // craete a bind task

        // if this is a global declaration, make sure they will be generated
        // under a package.
        boolean isGlobal = false;
        if( sc instanceof XSDeclaration ) {
            isGlobal = ((XSDeclaration)sc).isGlobal();
            if( isGlobal )
                pushClassScope( new CClassInfoParent.Package(
                    getPackage(((XSDeclaration)sc).getTargetNamespace())) );
        }

        // otherwise check if this component should become a class.
        CElement bean = sc.apply(classBinder);

        if( isGlobal )
            popClassScope();

        if(bean==null)
            return null;

        // can this namespace generate a class?
        if (bean instanceof CClassInfo) {
            XSSchema os = sc.getOwnerSchema();
            BISchemaBinding sb = builder.getBindInfo(os).get(BISchemaBinding.class);
            if(sb!=null && !sb.map) {
                // nope
                getErrorReporter().error(sc.getLocator(),
                    Messages.ERR_REFERENCE_TO_NONEXPORTED_CLASS, sc.apply( new ComponentNameFunction() ) );
                getErrorReporter().error(sb.getLocation(),
                    Messages.ERR_REFERENCE_TO_NONEXPORTED_CLASS_MAP_FALSE, os.getTargetNamespace() );
                if(referer!=null)
                    getErrorReporter().error(referer.getLocator(),
                        Messages.ERR_REFERENCE_TO_NONEXPORTED_CLASS_REFERER, referer.apply( new ComponentNameFunction() ) );
            }
        }


        queueBuild( sc, bean );
    }

    Binding bind = bindMap.get(sc);
    if( cannotBeDelayed )
        bind.build();

    return bind.bean;
}