You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by un...@apache.org on 2005/06/17 13:15:41 UTC
svn commit: r191127 -
/cocoon/blocks/jms/trunk/java/org/apache/cocoon/components/jms/JMSConnectionEventListener.java
/cocoon/blocks/jms/trunk/java/org/apache/cocoon/components/jms/JMSConnectionEventNotifier.java
Author: unico
Date: Fri Jun 17 04:15:38 2005
New Revision: 191127
URL: http://svn.apache.org/viewcvs?rev=191127&view=rev
Log:
Forgot to commit together with revision 191126 (JMS reconnection)
Added:
cocoon/blocks/jms/trunk/java/org/apache/cocoon/components/jms/JMSConnectionEventListener.java (with props)
cocoon/blocks/jms/trunk/java/org/apache/cocoon/components/jms/JMSConnectionEventNotifier.java (with props)
Added: cocoon/blocks/jms/trunk/java/org/apache/cocoon/components/jms/JMSConnectionEventListener.java
URL: http://svn.apache.org/viewcvs/cocoon/blocks/jms/trunk/java/org/apache/cocoon/components/jms/JMSConnectionEventListener.java?rev=191127&view=auto
==============================================================================
--- cocoon/blocks/jms/trunk/java/org/apache/cocoon/components/jms/JMSConnectionEventListener.java (added)
+++ cocoon/blocks/jms/trunk/java/org/apache/cocoon/components/jms/JMSConnectionEventListener.java Fri Jun 17 04:15:38 2005
@@ -0,0 +1,39 @@
+/*
+ * Copyright 1999-2004 The Apache Software Foundation.
+ *
+ * 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.cocoon.components.jms;
+
+/**
+ * JMSConnectionEventListeners can register themselves with a
+ * {@link org.apache.cocoon.components.jms.JMSConnectionEventNotifier}
+ * in order to be notified of connect and disconnect events.
+ */
+public interface JMSConnectionEventListener {
+
+ /**
+ * Called when a JMS connection has been established.
+ *
+ * @param name the name of the JMS connection.
+ */
+ void onConnection(String name);
+
+ /**
+ * Called when a JMS connection is being disconnected.
+ *
+ * @param name the name of the JMS connection.
+ */
+ void onDisconnection(String name);
+
+}
Propchange: cocoon/blocks/jms/trunk/java/org/apache/cocoon/components/jms/JMSConnectionEventListener.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cocoon/blocks/jms/trunk/java/org/apache/cocoon/components/jms/JMSConnectionEventListener.java
------------------------------------------------------------------------------
svn:keywords = Id
Added: cocoon/blocks/jms/trunk/java/org/apache/cocoon/components/jms/JMSConnectionEventNotifier.java
URL: http://svn.apache.org/viewcvs/cocoon/blocks/jms/trunk/java/org/apache/cocoon/components/jms/JMSConnectionEventNotifier.java?rev=191127&view=auto
==============================================================================
--- cocoon/blocks/jms/trunk/java/org/apache/cocoon/components/jms/JMSConnectionEventNotifier.java (added)
+++ cocoon/blocks/jms/trunk/java/org/apache/cocoon/components/jms/JMSConnectionEventNotifier.java Fri Jun 17 04:15:38 2005
@@ -0,0 +1,40 @@
+/*
+ * Copyright 1999-2004 The Apache Software Foundation.
+ *
+ * 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.cocoon.components.jms;
+
+/**
+ * {@link org.apache.cocoon.components.jms.JMSConnectionEventListener}s
+ * may register themselves in order to be notified of connect and disconnect events.
+ */
+public interface JMSConnectionEventNotifier {
+
+ /**
+ * Register a JMSConnectionEventListener.
+ *
+ * @param name the name of the JMS connection.
+ * @param listener the listener to register
+ */
+ void addConnectionListener(String name, JMSConnectionEventListener listener);
+
+ /**
+ * Deregister a JMSConnectionEventListener.
+ *
+ * @param name the name of the JMS connection.
+ * @param listener the listener to register.
+ */
+ void removeConnectionListener(String name, JMSConnectionEventListener listener);
+
+}
Propchange: cocoon/blocks/jms/trunk/java/org/apache/cocoon/components/jms/JMSConnectionEventNotifier.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cocoon/blocks/jms/trunk/java/org/apache/cocoon/components/jms/JMSConnectionEventNotifier.java
------------------------------------------------------------------------------
svn:keywords = Id