On Mon, Jul 7, 2008 at 12:01 PM, Guðmundur Bjarni Ólafsson
<[EMAIL PROTECTED]> wrote:
> I cooked up a small API that does just this. Simply put, it's just an
> implementation of a HiveFactory which acts as a Builder. I plan to publish
> some time in the near future but there are several small issues that I'd
> like to solve first.
>
> Right now the usage of the API looks like this:
>
> BuilderHiveFactory hiveFactory = new BuilderHiveFactory();
> Principal principal = new SimplePrincipal("whatever");
> Set<Class<? extends WaspAction>> actions = ...;
> actions.add(Inherit.class);
> actions.add(Render.class);
> actions.add(Enable.class);
>
> hiveFactory.addComponentPermission(principal, MySecurePage.class, actions);
>
> I would love to get your thoughts and input on this kind of HiveFactory.

Well, that's exactly what I'm talking about!  I really hated putting
stuff into external files when one of the biggest selling points about
Wicket was the fact that there are no configuration files necessary
(aside from the simple hook in the web.xml file of course).  I'm not
familiar enough with the configuration stuff yet, but the idea is just
what I'm looking for.

Reply via email to