No external configuration for control method parameter
------------------------------------------------------
Key: BEEHIVE-900
URL: http://issues.apache.org/jira/browse/BEEHIVE-900
Project: Beehive
Type: Bug
Components: Controls
Versions: TBD
Environment: N/A
Reporter: Xibin Zeng
Currently, external configuration for control method parameters is not
supported:
//
// ControlBeanContext.getParameterPropertySet
//
public <T extends Annotation> T getParameterPropertySet(Method m, int i,
Class<T> propertySet)
throws IllegalArgumentException,
IndexOutOfBoundsException
{
if (i >= m.getParameterTypes().length)
throw new IndexOutOfBoundsException("Invalid parameter index for
method:" + m);
//
// BUGBUG: Currently, there is no external override mechanism for
method parameters
//
Annotation [] paramAnnots = m.getParameterAnnotations()[i];
for (int j = 0; j < paramAnnots.length; j++)
if (propertySet.isAssignableFrom(paramAnnots[j].getClass()))
return (T)paramAnnots[j];
return null;
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira