Author: anil.saldhana(a)jboss.com
Date: 2008-06-30 13:48:35 -0400 (Mon, 30 Jun 2008)
New Revision: 7
Added:
trunk/identity-api/src/main/java/org/
trunk/identity-api/src/main/java/org/jboss/
trunk/identity-api/src/main/java/org/jboss/identity/
trunk/identity-api/src/main/java/org/jboss/identity/api/
trunk/identity-api/src/main/java/org/jboss/identity/api/event/
trunk/identity-api/src/main/java/org/jboss/identity/api/event/IdentityEvent.java
trunk/identity-api/src/main/java/org/jboss/identity/api/event/IdentityEventBroadcaster.java
trunk/identity-api/src/main/java/org/jboss/identity/api/event/IdentityEventEmitter.java
trunk/identity-api/src/main/java/org/jboss/identity/api/event/IdentityEventListener.java
Modified:
trunk/identity-api/
Log:
JBID-3: event api
Property changes on: trunk/identity-api
___________________________________________________________________
Name: svn:ignore
+ target/
Added: trunk/identity-api/src/main/java/org/jboss/identity/api/event/IdentityEvent.java
===================================================================
--- trunk/identity-api/src/main/java/org/jboss/identity/api/event/IdentityEvent.java
(rev 0)
+++
trunk/identity-api/src/main/java/org/jboss/identity/api/event/IdentityEvent.java 2008-06-30
17:48:35 UTC (rev 7)
@@ -0,0 +1,31 @@
+/*
+* JBoss, a division of Red Hat
+* Copyright 2006, Red Hat Middleware, LLC, and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+*/
+
+package org.jboss.idm.api.event;
+
+/**
+ * @author <a href="mailto:boleslaw dot dawidowicz at redhat anotherdot
com">Boleslaw Dawidowicz</a>
+ * @version : 0.1 $
+ */
+public class IdentityEvent
+{
+}
Added:
trunk/identity-api/src/main/java/org/jboss/identity/api/event/IdentityEventBroadcaster.java
===================================================================
---
trunk/identity-api/src/main/java/org/jboss/identity/api/event/IdentityEventBroadcaster.java
(rev 0)
+++
trunk/identity-api/src/main/java/org/jboss/identity/api/event/IdentityEventBroadcaster.java 2008-06-30
17:48:35 UTC (rev 7)
@@ -0,0 +1,39 @@
+/******************************************************************************
+ * JBoss, a division of Red Hat *
+ * Copyright 2006, Red Hat Middleware, LLC, and individual *
+ * contributors as indicated by the @authors tag. See the *
+ * copyright.txt in the distribution for a full listing of *
+ * individual contributors. *
+ * *
+ * This is free software; you can redistribute it and/or modify it *
+ * under the terms of the GNU Lesser General Public License as *
+ * published by the Free Software Foundation; either version 2.1 of *
+ * the License, or (at your option) any later version. *
+ * *
+ * This software is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
+ * Lesser General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU Lesser General Public *
+ * License along with this software; if not, write to the Free *
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA *
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org. *
+ ******************************************************************************/
+package org.jboss.idm.api.event;
+
+/**
+ * Interface that allow event firing.
+ *
+ * @author <a href="mailto:julien@jboss.org">Julien Viet</a>
+ * @version $Revision: 1.1 $
+ */
+public interface IdentityEventBroadcaster
+{
+ /**
+ * Fire an event.
+ *
+ * @param event the event to fire
+ */
+ void fireEvent(IdentityEvent event);
+}
Added:
trunk/identity-api/src/main/java/org/jboss/identity/api/event/IdentityEventEmitter.java
===================================================================
---
trunk/identity-api/src/main/java/org/jboss/identity/api/event/IdentityEventEmitter.java
(rev 0)
+++
trunk/identity-api/src/main/java/org/jboss/identity/api/event/IdentityEventEmitter.java 2008-06-30
17:48:35 UTC (rev 7)
@@ -0,0 +1,46 @@
+/******************************************************************************
+ * JBoss, a division of Red Hat *
+ * Copyright 2006, Red Hat Middleware, LLC, and individual *
+ * contributors as indicated by the @authors tag. See the *
+ * copyright.txt in the distribution for a full listing of *
+ * individual contributors. *
+ * *
+ * This is free software; you can redistribute it and/or modify it *
+ * under the terms of the GNU Lesser General Public License as *
+ * published by the Free Software Foundation; either version 2.1 of *
+ * the License, or (at your option) any later version. *
+ * *
+ * This software is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
+ * Lesser General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU Lesser General Public *
+ * License along with this software; if not, write to the Free *
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA *
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org. *
+ ******************************************************************************/
+package org.jboss.idm.api.event;
+
+/**
+ * Interface that allows registration management of identity event listeners.
+ *
+ * @author <a href="mailto:julien@jboss.org">Julien Viet</a>
+ * @version $Revision: 1.1 $
+ */
+public interface IdentityEventEmitter
+{
+ /**
+ * Add a listener.
+ *
+ * @param listener the listener for all identity events
+ */
+ void addListener(IdentityEventListener listener);
+
+ /**
+ * Remove a listener.
+ *
+ * @param listener the listener
+ */
+ void removeListener(IdentityEventListener listener);
+}
Added:
trunk/identity-api/src/main/java/org/jboss/identity/api/event/IdentityEventListener.java
===================================================================
---
trunk/identity-api/src/main/java/org/jboss/identity/api/event/IdentityEventListener.java
(rev 0)
+++
trunk/identity-api/src/main/java/org/jboss/identity/api/event/IdentityEventListener.java 2008-06-30
17:48:35 UTC (rev 7)
@@ -0,0 +1,39 @@
+/******************************************************************************
+ * JBoss, a division of Red Hat *
+ * Copyright 2006, Red Hat Middleware, LLC, and individual *
+ * contributors as indicated by the @authors tag. See the *
+ * copyright.txt in the distribution for a full listing of *
+ * individual contributors. *
+ * *
+ * This is free software; you can redistribute it and/or modify it *
+ * under the terms of the GNU Lesser General Public License as *
+ * published by the Free Software Foundation; either version 2.1 of *
+ * the License, or (at your option) any later version. *
+ * *
+ * This software is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
+ * Lesser General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU Lesser General Public *
+ * License along with this software; if not, write to the Free *
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA *
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org. *
+ ******************************************************************************/
+package org.jboss.idm.api.event;
+
+/**
+ * An event listener.
+ *
+ * @author <a href="mailto:julien@jboss.org">Julien Viet</a>
+ * @version $Revision: 1.1 $
+ */
+public interface IdentityEventListener
+{
+ /**
+ * Fire event on the listener.
+ *
+ * @param event the identity event
+ */
+ void onEvent(IdentityEvent event);
+}