All,
Guards are next on my list, and I'd like to get some suggestions for
how we can integrate them simply into the actions.
My initial thoughts (sans research) are to have an annotation on the
action next to the URI, specifying either an ObjectFactory name or
class.
Really I'm looking to make this a placeholder now and building out
some common / interesting guards later. For instance, you could have
something like:
@Guard(class=MyGuard.class) or
@Guard(name="MyGuard")
which would create an instance of this guard and attach it to the
restlet built for this action.
Later on there may be a fulworx supplied "standard" guard like:
@Guard(type=CAS, url="
http://my.cas.server")
Thoughts? Suggestions?
T