[Design the new POJO MicroContainer] - Re: Kernel module wip WARNING
by adrian@jboss.org
"sacha.labourey(a)jboss.com" wrote : Ales,
|
| You should receive a special price for being "Brocked" on pretty much a daily basis! I admire your calm! ;)
|
| Special present for you Ales: Friday night, at a pub, Adrian told me that he enjoyed "brocking" you but that I shouldn't read too much into this is as he thinks you are actually doing a great job. Coming from Adrian, that's a great compliment.
|
| Onward,
|
|
| Sacha
|
Now you've let the secret out the bag, how I am I supposed to get Ales
to do what I want him to do? :-)
It's true 99.9% of what Ales does is brilliant. (There's some bits even
I don't understand, which may or may not be a good thing :-)
It's just that I found the other 0.1% all in one go while pushing for CR1 releases. ;-)
P.S. I plan to handover most of the MC projects to Ales once 2.0.0.GA is out.
So I'll be "working for him" after that. What goes around comes around. ;-)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4137745#4137745
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4137745
18 years
[Design of JBossXB] - Re: Extending EnumValueAdapter
by alesj
"adrian(a)jboss.org" wrote :
| * What there isn't is a declartive (annotation) to ignore case when the xml
| enum type extends xsd:string.
|
| @JBossXmlEnum(ignoreCase=true)
| public enum Root
| {
| ONE,
| TWO,
| THREE
| }
|
| protected void testEnumValueAdapter(EnumValueAdapter enumValueAdapter)
| {
| super.testEnumValueAdapter(enumValueAdapter);
|
| assertEquals(Root.ONE, enumValueAdapter.cast("one", Root.class));
| assertEquals(Root.ONE, enumValueAdapter.cast("One", Root.class));
| assertEquals(Root.ONE, enumValueAdapter.cast("ONE", Root.class));
|
| assertEquals(Root.TWO, enumValueAdapter.cast("two", Root.class));
| assertEquals(Root.TWO, enumValueAdapter.cast("Two", Root.class));
| assertEquals(Root.TWO, enumValueAdapter.cast("TWO", Root.class));
|
| assertEquals(Root.THREE, enumValueAdapter.cast("three", Root.class));
| assertEquals(Root.THREE, enumValueAdapter.cast("Three", Root.class));
| assertEquals(Root.THREE, enumValueAdapter.cast("THREE", Root.class));
| }
|
Can I now get a 'you (finally) understand' tag? ;-)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4137738#4137738
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4137738
18 years
[Design the new POJO MicroContainer] - Re: JarEntry as VFS root does not return empty vfspath
by adrian@jboss.org
"scott.stark(a)jboss.org" wrote : Right, the test is wrong if JarContext(entry) is no longer simply returning the JarEntry name, and it should not be.
|
The VFS "name" should never be the empty string.
This is used in many places, e.g. VFSDeployment.getSimpleName()
and will break things if it is empty.
The idea of the "name" is say what artifact you are referring to without the path.
If you want to add a "contextName" which is just the relevant section used
to construct the pathName then that is fine, but don't change the "name".
Suppose you have
url://some/path/outer.jar/lib/inner.jar
and construct a vfs context from (context name obviously doesn't exist)
root = VFS.getRoot("url://some/path");
root.getName() : "path" (this should not be empty)
root.getPathName() : ""
root.getContextName() : "" (this would be empty because it is the root of the vfs)
outer = root.getChild("outer.jar");
outer.getName() : "outer.jar");
outer.getPathName() : "outer.jar"
outer.getContextName() : "outer.jar")
inner = get.findChild("lib/inner.jar");
inner.getName() : "inner.jar"
inner.getPathName() : "outer.jar/lib/inner.jar"
inner.getContextName() : "inner.jar"
As you can see the ContextName is the same as the Name
except when it is the root of the VFS (i.e. no parent), so I'm not sure the ContextName
is really necessary. Or if it is, it could easily be written in the abstract
public String getContextName()
{
if (getParent() == null)
return "";
return getName();
}
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4137723#4137723
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4137723
18 years