public static final LifecycleParametersInterceptor INTERCEPTOR = new LifecycleParametersInterceptor();
public void add(Object parent, Object child, QName name)
{
AbstractLifecycleMetaData lifecycle = (AbstractLifecycleMetaData) parent;
AbstractParameterMetaData parameter = (AbstractParameterMetaData) child;
List<ParameterMetaData> parameters = lifecycle.getParameters();
if (parameters == null)
{
parameters = new ArrayList<ParameterMetaData>();
lifecycle.setParameters(parameters);
}
parameter.setIndex(parameters.size());
parameters.add(parameter);
}