2 Replies Latest reply on Feb 17, 2008 2:37 PM by ajohnson1200

    How to register events?

      Hi,

          Im using clearspacex my objective here is to capture the user registration details using UserListner through a plugin where im planning to place my listner class but im not sure how to register my custom event listner class. also not sure about the configuration in plugin.xml any help would be appricated.

       

      thank you,

      bala.

        • Re: How to register events?

          Hi,

               I figured out the solution i needed. any way thx all of you.

           

          Bala

          • Re: How to register events?

            hi Bala,

             

            I saw that you figured this out, but just in case someone else stops by this thread looking for how to register events.. you could use code that looks like this (if you wanted user events and you implemented the UserListener interface):

            UserEventDispatcher.getInstance().addListener(this);

            Generally event registration is done during initialization of the application, so plugins are a natural place to register for events since are themselves initialized as part of the application lifecycle.

             

            Cheers,

             

            AJ