[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: MutableClassInfo?

stale.pedersen@jboss.org do-not-reply at jboss.com
Thu Feb 26 16:43:16 EST 2009


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



More information about the jboss-dev-forums mailing list