[Design the new POJO MicroContainer] - Re: MutableClassInfo?
by stale.pedersen@jboss.org
im writing a few tests for the mutable implementation and there are part of the existing api that i feel are a bit cumberstone. example:
| MutableClassInfo mci = new JavassistTypeInfoFactoryImpl().getMutable("Pojo", null);
| MutableMethodInfo bar = mci.getDeclaredMethod("bar", new TypeInfo[] {(TypeInfo) new JavassistTypeInfoFactoryImpl().get("java.lang.String", Thread.currentThread().getContextClassLoader()) });
how about adding methods like:public MethodInfo getDeclaredMethod(String methodName, String[] methodArgs);
- to ClassInfo that by default use the classloader already defined in the TypeInfoFactory instance. if the user need to specify another classloader they will need to use the current method.
its easy to implement and makes it easier to use so its well worth it imo.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4213535#4213535
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4213535
15 years, 1 month