Author: iocanel
Date: Fri Aug 26 20:54:22 2011
New Revision: 1162252

URL: http://svn.apache.org/viewvc?rev=1162252&view=rev
Log:
[KARAF-823] Added a event transport factory class.

Added:
    
karaf/cellar/trunk/core/src/main/java/org/apache/karaf/cellar/core/event/EventTransportFactory.java

Added: 
karaf/cellar/trunk/core/src/main/java/org/apache/karaf/cellar/core/event/EventTransportFactory.java
URL: 
http://svn.apache.org/viewvc/karaf/cellar/trunk/core/src/main/java/org/apache/karaf/cellar/core/event/EventTransportFactory.java?rev=1162252&view=auto
==============================================================================
--- 
karaf/cellar/trunk/core/src/main/java/org/apache/karaf/cellar/core/event/EventTransportFactory.java
 (added)
+++ 
karaf/cellar/trunk/core/src/main/java/org/apache/karaf/cellar/core/event/EventTransportFactory.java
 Fri Aug 26 20:54:22 2011
@@ -0,0 +1,41 @@
+/*
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.karaf.cellar.core.event;
+
+import org.apache.karaf.cellar.core.event.EventConsumer;
+import org.apache.karaf.cellar.core.event.EventProducer;
+
+/**
+ * @author: iocanel
+ */
+public interface EventTransportFactory {
+
+    /**
+     * Returns an Event Producer that produces {@link Event}s for a specific 
{@link org.apache.karaf.cellar.core.Group}.
+     * @param name
+     * @param pubsub
+     * @return
+     */
+    public EventProducer getEventProducer(String name, Boolean pubsub);
+
+    /**
+     * Returns an Event Consumer that consumes {@link Event}s for a specific 
{@link org.apache.karaf.cellar.core.Group}.
+     * @param name
+     * @param pubsub
+     * @return
+     */
+    public EventConsumer getEventConsumer(String name, Boolean pubsub);
+
+}


Reply via email to