[Design the new POJO MicroContainer] - Re: Property replacement
by alesj
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>
|
so that I can add an this (replace="false"):
<annotation replace="false">@SomeAnnotation</annotation>
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());
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4007231#4007231
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4007231
19 years, 2 months
[Design the new POJO MicroContainer] - Re: Property replacement
by bstansberry@jboss.com
Apologies in advance if this is a hijack; I'll open another thread if the work discussed here isn't the cause...
In AS trunk with the latest microcontainer jars, this no longer works in a -beans.xml:
<annotation>@org.jboss.aop.microcontainer.aspects.jmx.JMX(name="jboss:service=HASingletonDeploymentScanner,partitionName=${jboss.partition.name:DefaultPartition}", exposedInterface=org.jboss.ha.singleton.HASingletonDeploymentScannerMBean.class, registerDirectly=true)</annotation>
You get:
10:18:00,181 ERROR [AbstractKernelController] Error installing to Configured: name=HASingletonDeploymentScanner state=Instantiated
| javax.management.MalformedObjectNameException: Invalid character ':' in value part of property
| at javax.management.ObjectName.construct(ObjectName.java:529)
| at javax.management.ObjectName.<init>(ObjectName.java:1304)
| at org.jboss.aop.microcontainer.aspects.jmx.JMXIntroduction.invoke(JMXIntroduction.java:71)
| at org.jboss.aop.advice.org.jboss.aop.microcontainer.aspects.jmx.JMXIntroduction_z_invoke_24464082.invoke(JMXIntroduction_z_invoke_24464082.java)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at AOPContainerProxy$5.setKernelControllerContext(AOPContainerProxy$5.java)
| at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.installAction(KernelControllerContextAction.java:208)
| at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.install(KernelControllerContextAction.java:136)
| ...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4007210#4007210
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4007210
19 years, 2 months
[Design of JBoss jBPM] - Re: committing content from our
by camunda
Okay, I have started to transfer our code to Commands. The first thing to say is, that we will need a lot of commands (because for working with a fat client we need a command for every communication with the engine), but I think that is not a problem (and I do not know a good way around that).
I have some questions on code conventions in the jbpm project, I haven't figured it our myself and the JBoss-Website seems to be down today :-(
1) What Exception to use if I get invalid data in a command? The JbpmException?
2.) Where to put Hibernate-Queries? We had to build some additional ones for some circumstances. I have seen you put them into a xml-file. This is good for seperating of concerns but I don't like it to much because you get typos in Classes or package names faster there. But anyway, if I have additional queries, can I add them there? Or write them into the commands (not a good idea I think), or just move the HibernateQuery-class we have to the jBPM code base?
3) Which JDK to use? Can I use generics (so loose JDK 1.4 compability)?
Another question: Shouldn't be every attribute in the commands private? Because in the existing commands all attributes are package local...
And the last question: Where to put concrete questions on the already existing commands. In the sourcecode? Here in the forum? Wiki?
Thanks in advance for the answers and a nice weekend
Bernd
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4007207#4007207
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4007207
19 years, 2 months