// TODO: Check that at least one parameter is type java.lang.Object,
// since that's how the delegate is passed in.
Order orderAnnotation = method.getAnnotation(Order.class);
Match match = method.getAnnotation(Match.class);
String[] constraints = orderAnnotation != null ? orderAnnotation.value() : null;
// TODO: Validate constraints here?
String[] patterns = match == null ? new String[]
{ decoratorId } : match.value();
DecoratorDef def = new DecoratorDefImpl(decoratorId, method, patterns, constraints,
_classFactory);
_decoratorDefs.put(decoratorId, def);