[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Property replacement
scott.stark@jboss.org
do-not-reply at jboss.com
Sun Jan 28 03:37:07 EST 2007
"alesj" wrote : How do we change this:
|
| | <xsd:simpleType name="annotationType">
| | <xsd:annotation>
| | <xsd:documentation>
| | <![CDATA[
| | The annotation type represents a Java5 annotation on the particular join point.
| | ]]>
| | </xsd:documentation>
| | </xsd:annotation>
| | <xsd:restriction base="xsd:string">
| | <xsd:whiteSpace value="collapse"/>
| | </xsd:restriction>
| | </xsd:simpleType>
| |
| anonymous wrote :
| |
| | To allow an attribute on the annotation element, you need to change it to a complexType/simpleContent:
| |
| |
| | | <xsd:complexType name="annotationType">
| | | <xsd:annotation>
| | | <xsd:documentation>
| | | <![CDATA[
| | | The annotation type represents a Java5 annotation on the particular join point.
| | | ]]>
| | | </xsd:documentation>
| | | </xsd:annotation>
| | |
| | | <xsd:simpleContent>
| | | <xsd:extension base="xsd:string">
| | | <xsd:attribute name="replace" type="xsd:boolean" default="false" />
| | | </xsd:extension>
| | | </xsd:simpleContent>
| | | </xsd:complexType>
| | |
| |
| | "alesj" wrote :
| | | Is it ok that we have StringPropertyReplacer in AbstractAnnotationMetaData?
| | | String annString = StringPropertyReplacer.replaceProperties(annotation);
| | | | //FIXME [JBMICROCONT-99] [JBAOP-278] Use the loader for the bean?
| | | | ann = (Annotation)AnnotationCreator.createAnnotation(annString, Thread.currentThread().getContextClassLoader());
| | | |
| | |
| | I guess, but I don't see this as a natural usage. A check of the replace attribute would be needed.
| |
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4007381#4007381
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4007381
More information about the jboss-dev-forums
mailing list