Hi Dan,
I'm trying to implement your alternate suggestion, but I'm having
issues.
On 3 Dec 2011 at 7:03, Dan Haywood wrote:
> final Method method =
> MethodFinderUtils.findMethod(cls, MethodScope.OBJECT, DISABLED_PREFIX,
> String.class, NO_PARAMETERS_TYPES);
>
> for(ObjectMember member: objectSpec.getMembers()) {
No such method as getMembers() on ObjectSpecification.
> FacetUtil.addFacet(new DisabledObjectFacetViaDisabledMethod(method,
> member);
> }
In fact, there is no such method anywhere except in the json applib.
I'm trying to fetch ObjectMember based on Method... but that's not
looking good either! :)
I understand what you're suggesting, I'm just having difficulties making
it so!
Regards,
Kevin