guard suggestions

1 view
Skip to first unread message

teas...@gmail.com

unread,
Nov 12, 2008, 9:36:47 PM11/12/08
to fulworx-dev
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

Matt Darling

unread,
Nov 13, 2008, 11:44:28 AM11/13/08
to fulwo...@googlegroups.com
That works.  What about the support for multiple guards?  Comma separated list or perhaps the order in which they're annotated?

-matt

teas...@gmail.com

unread,
Nov 13, 2008, 12:47:15 PM11/13/08
to fulworx-dev
Multiple annotations works, if the AnnotationParser in the class
object doesn't go in order, I'll have to add an order element.

Do you have any sample guards I could use that you'd like to me to
verify?

T

On Nov 13, 8:44 am, "Matt Darling" <mdarl...@gmail.com> wrote:
> That works.  What about the support for multiple guards?  Comma separated
> list or perhaps the order in which they're annotated?
>
> -matt
>
Reply all
Reply to author
Forward
0 new messages