[Design of AOP on JBoss (Aspects/JBoss)] - Re: Implementing JAXB style parsing for aop-mc-int
by kabir.khan@jboss.com
This works better
| <xsd:redefine schemaLocation="jboss-beans-common_2_0.xsd">
| ...
| <xsd:group name="valueGroup">
| <xsd:choice>
| <xsd:element name="value" type="plainValueType"/>
| <xsd:element name="inject" type="injectionType"/>
| <xsd:element name="value-factory" type="valueFactoryType"/>
| <xsd:element name="collection" type="collectionType"/>
| <xsd:element name="list" type="listType"/>
| <xsd:element name="set" type="setType"/>
| <xsd:element name="array" type="arrayType"/>
| <xsd:element name="map" type="mapType"/>
| <xsd:element name="null">
| <xsd:complexType/>
| </xsd:element>
| <xsd:element name="this">
| <xsd:complexType/>
| </xsd:element>
| <xsd:any namespace="##other" processContents="strict">
| <xsd:annotation>
| <xsd:documentation>An extension value</xsd:documentation>
| </xsd:annotation>
| </xsd:any>
| </xsd:choice>
| </xsd:group>
| ...
| </xsd:redefine>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4138715#4138715
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4138715
18 years
[Design the new POJO MicroContainer] - Re: beanfactory injection
by adrian@jboss.org
"alesj" wrote : "scott.stark(a)jboss.org" wrote : Guess I need to look into how to make the error more informative.
| Like I said, and I think Adrian also already mentioned, we need to switch on the xml validation, for tests and real usage.
| That would tell you the real problem, 'name' attribute doesn't exist on inject element.
|
That's a different issue.
Turning on xml validation isn't going to help if you construct the BeanMetaData
programmatically.
We should add something to the "toHumanReadableString()" for the "anonymous inject"
to ask whether they intended that it or just forgot to give a bean name. :-)
| Bean2TypePool -> injection by interface org.jboss.beans.metadata.spi.factory.BeanFactory (or did you forget to supply a bean name for the injection?) {Installed:** NOT FOUND **}
|
Otherwise we're going to get lots of FAQs :-)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4138714#4138714
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4138714
18 years