Name: Vikas

Posts by vhazrati

    Is Guice juicy enough?

    The following post talks about my first brush with Guice based on a couple of hours that I spent on it for the past few days. I would not get into burning fire of comparing Guice with Spring as there has already been a lot of debate on that. Personally in my view it is comparing apple with oranges. We can probably just make comparison between how DI works on Spring and how it works on Guice but then we know that Spring is much more than DI, it is a feature full comprehensive stack.

    So not getting into that path any further back to DI with Guice.

    Guice wholly embraces annotations and generics. The idea is that annotations finally free you from error-prone, refactoring-adverse string identifiers and frees you up from the XML configuration hell. Guice injects constructors, fields and methods (any methods with any number of arguments, not just setters)

    The injection process for Guice is a two step injection process.
    1.Define the Bindings.
    2.Inject the concrete implementations at the right places.

    Let us look at how it is done...
    Read more »

    Search Xebia Blogs : Firefox Plugin

    When there is wealth of information available on the Xebia Blogs, would you really like to go elsewhere?

    Using the Firefox plugin mentioned below you can search within the Xebia Blogs using the Firefox searchbar. once you install the search plugin and restart the Xebia option would start appearing in the search bar as an option

    Follow the steps
    Read more »

    Playing Another User Role Using ACEGI

    Recently, on one of our projects we had a requirement to allow the ROLE_ADMIN to login as another user without knowing or changing the password of that user. For example 'Jack' has the ROLE_ADMIN and 'Suzy' has the ROLE_USER. Now 'Jack' wants to login as 'Suzy' without knowing her password and carry out some tasks on her behalf acting as her when 'Suzy' is unavailable and some work needs to be done, of course you should provide a mechanism to audit and log whenever 'Jack' wants to play a different role.

    This is fairly easy to implement using Acegi

    The SwitchUserProcessingFilter in Acegi helps to achieve this functionality. The steps below will show how to configure and use it

    Read more »

    15 Stand-up commitments to a greater Scrum

    15 Stand-up commitments for those crucial 15 minutes

    It is another great day, sun shining bright, traffic snarls continuing on roads, the team getting ready for another productive agile day with droopy faces! Droopy faces , why ???

    Well because they have to get over the stand-up ritual first before they can get started with some real work.

    But is the stand up a ritual??? Aren't stand-ups supposed to be exciting and energizing???

    If this a common question disturbing you for a while then it is time to stand up for the stand-up. The details that follow are meant for any team practicing any Agile methodology like Scrum and who has started thinking that stand-ups are no more than an empty ritual which has to be pushed out at the start of the day.
    Read more »