Would this work:
| MethodInfo mi = Configurator.findMethodInfo(getClassInfo(context),
methodName, new String[]{signature});
| TypeInfo info = mi.getParameterTypes()[0];
| Class parameterType = info.getType();
| if (Collection.class.isAssignableFrom(parameterType))
| {
| if (info instanceof ParameterizedArrayInfo)
| {
| ParameterizedArrayInfo pai = (ParameterizedArrayInfo)info;
| callback =
CollectionCallbackItemFactory.createCollectionCallbackItem(parameterType,
pai.getComponentType().getType(), whenRequired, dependentState, context, methodName);
| }
| else
| throw new IllegalArgumentException("Unable to determine
collection element class type: " + this);
| }
|
Or how to get element class type?
Is this (the only) way?
-
http://www.jboss.org/index.html?module=bb&op=viewtopic&t=88613&am...
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039045#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...