Results 1 to 5 of 5

Thread: Acegi with HiveMind or PicoContainer?

  1. #1
    Join Date
    Sep 2004
    Location
    Atlanta
    Posts
    12

    Default Acegi with HiveMind or PicoContainer?

    Has anyone tried using Acegi with HiveMind or PicoContainer? Is it possible?

    The only reason I ask is that for political reasons, it would be easier to sell Acegi Security to my colleagues if it wasn't completely dependent on Spring.

    -Gene

  2. #2
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    2,768

    Default

    Are you actually going to use it with HiveMind or PicoContainer?

    I'll quickly summarise dependencies on Spring itself as far as I recall.

    Acegi Security strongly depends on Spring for configuration. It uses Spring lifecycle support (ie InitializingBean) all over the place.

    Acegi Security uses Spring's data access superclasses for JDBC.

    The two secure methods are MethodInvocation and FilterInvocation. The latter is a home-grown wrapper that works with Servlet Filters, so it's not Spring-dependent. The former uses AOP Alliance's MethodInvocation so provided you can wire it up with another container, it should work.

    Having said that, I'm not really sure why you'd want to use Acegi Security with some other IOC container. Acegi Security was designed for use with Spring. The fact it uses the Spring framework for its own configuration should be expected.

  3. #3
    Join Date
    Sep 2004
    Location
    Atlanta
    Posts
    12

    Default

    So other than the JDBC superclasses, it sounds like Acegi is only using Spring for it's IoC container. It's certainly your call, but it would benefit Acegi to be compatible with at least the other big two IoC containers. Their users would surely welcome the configurable security system (you could always test the waters on their forums).

    As for me, I hope to be able to get Spring accepted at my workplace - and then to use Acegi in conjuction with Spring. But I have to present both technologies separately. I could make a stronger case for Acegi if it didn't require "IoC container lock-in" - so to speak.

  4. #4
    Join Date
    Nov 2004
    Posts
    8

    Default more on this subject...

    Hi,
    I'd also be interested in acegi outside spring. Well, the thing is, we have a project, currently running with webwork and picocontainer. We're not ready and don't necessarily have reasons to move to Spring, although we'd love to use acegi. Now, what I'm wondering is, can acegi be used.. maybe in spring, but be integrated with an application which is absolutely not using spring in any way? Would using spring just for acegi work?

    I guess this will depend on how much I want to use from acegi?

  5. #5
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    2,768

    Default

    Nothing has really changed since my October posting, except Acegi Security now also uses Spring's EH-CACHE factory class. Although you're free to build an EH-CACHE Object and inject it via any other IoC container.

    As I said in October, Acegi Security uses Spring for its lifecycle services (ie InitializingBean), DI itself, and in two classes, ApplicationContextAware as the publish messages to the application content.

    So there's nothing really stopping you using it with another IoC container if you wanted to.

Similar Threads

  1. Replies: 8
    Last Post: Mar 19th, 2008, 11:13 AM
  2. Acegi running fine. Howto add roles, ...
    By ThomasBecker in forum Security
    Replies: 9
    Last Post: Sep 16th, 2007, 08:16 AM
  3. Replies: 9
    Last Post: Sep 5th, 2006, 06:50 AM
  4. Acegi for LDAP
    By vaibhav.gandhi in forum Security
    Replies: 12
    Last Post: Jul 13th, 2005, 12:33 AM
  5. Replies: 4
    Last Post: Nov 2nd, 2004, 02:11 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •