[jboss-cvs] JBossAS SVN: r94474 - in projects/jboss-jca/trunk/core/src/main/java/org/jboss/jca/core: connectionmanager and 1 other directory.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Oct 7 16:20:47 EDT 2009
Author: gurkanerdogdu
Date: 2009-10-07 16:20:46 -0400 (Wed, 07 Oct 2009)
New Revision: 94474
Added:
projects/jboss-jca/trunk/core/src/main/java/org/jboss/jca/core/connectionmanager/RealConnectionManager.java
Removed:
projects/jboss-jca/trunk/core/src/main/java/org/jboss/jca/core/api/RealConnectionManager.java
Modified:
projects/jboss-jca/trunk/core/src/main/java/org/jboss/jca/core/api/ConnectionManager.java
projects/jboss-jca/trunk/core/src/main/java/org/jboss/jca/core/connectionmanager/AbstractConnectionManager.java
projects/jboss-jca/trunk/core/src/main/java/org/jboss/jca/core/connectionmanager/ConnectionManagerImpl.java
Log:
[JBJCA-182] ConnectionManager API Implementation Dependency
Modified: projects/jboss-jca/trunk/core/src/main/java/org/jboss/jca/core/api/ConnectionManager.java
===================================================================
--- projects/jboss-jca/trunk/core/src/main/java/org/jboss/jca/core/api/ConnectionManager.java 2009-10-07 19:28:33 UTC (rev 94473)
+++ projects/jboss-jca/trunk/core/src/main/java/org/jboss/jca/core/api/ConnectionManager.java 2009-10-07 20:20:46 UTC (rev 94474)
@@ -30,21 +30,6 @@
*/
public interface ConnectionManager extends
javax.resource.spi.ConnectionManager
-{
- /**
- * Sets real connection manager.
- * <p>
- * <code>ConnectionManager</code> delegates to all connection related operations
- * to the <code>RealConnectionManager</code>. {@link RealConnectionManager} implemetation
- * is responsible for managing the connection pools and handling transactions over connections.
- * </p>
- * @param realConnectionManager real connection manager
- */
- public void setRealConnectionManager(RealConnectionManager realConnectionManager);
+{
- /**
- * Gets real connection manager instance.
- * @return real connection manager
- */
- public RealConnectionManager getRealConnectionManager();
}
Deleted: projects/jboss-jca/trunk/core/src/main/java/org/jboss/jca/core/api/RealConnectionManager.java
===================================================================
--- projects/jboss-jca/trunk/core/src/main/java/org/jboss/jca/core/api/RealConnectionManager.java 2009-10-07 19:28:33 UTC (rev 94473)
+++ projects/jboss-jca/trunk/core/src/main/java/org/jboss/jca/core/api/RealConnectionManager.java 2009-10-07 20:20:46 UTC (rev 94474)
@@ -1,65 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2008-2009, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file 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.jca.core.api;
-
-import org.jboss.jca.core.connectionmanager.listener.ConnectionCacheListener;
-import org.jboss.jca.core.connectionmanager.listener.ConnectionListenerFactory;
-import org.jboss.jca.core.connectionmanager.transaction.JTATransactionChecker;
-
-import javax.resource.ResourceException;
-import javax.resource.spi.ConnectionRequestInfo;
-import javax.resource.spi.ManagedConnectionFactory;
-
-import org.jboss.tm.TransactionTimeoutConfiguration;
-
-/**
- * Real connection manager contract.
- * <p>
- * <ul>
- * <li>Responsible for managing cached connections over transactional
- * components via {@link ConnectionCacheListener}</li>
- * <li>Responsible for managing connection instances using event listener
- * via {@link ConnectionListenerFactory}</li>
- * <li>Responsible for managing transaction operations via
- * {@link TransactionTimeoutConfiguration} and {@link JTATransactionChecker}</li>.
- * </ul>
- * </p>
- * @author <a href="mailto:gurkanerdogdu at yahoo.com">Gurkan Erdogdu</a>
- * @version $Rev$ $Date$
- *
- */
-public interface RealConnectionManager extends
- ConnectionCacheListener,
- ConnectionListenerFactory,
- TransactionTimeoutConfiguration,
- JTATransactionChecker
-
-{
- /**
- * Gets connection handle instance.
- * @param mcf managed connection factory
- * @param cri connection request info
- * @return ne wconnection
- * @throws ResourceException for exception
- */
- public Object allocateConnection(ManagedConnectionFactory mcf, ConnectionRequestInfo cri) throws ResourceException;
-}
Modified: projects/jboss-jca/trunk/core/src/main/java/org/jboss/jca/core/connectionmanager/AbstractConnectionManager.java
===================================================================
--- projects/jboss-jca/trunk/core/src/main/java/org/jboss/jca/core/connectionmanager/AbstractConnectionManager.java 2009-10-07 19:28:33 UTC (rev 94473)
+++ projects/jboss-jca/trunk/core/src/main/java/org/jboss/jca/core/connectionmanager/AbstractConnectionManager.java 2009-10-07 20:20:46 UTC (rev 94474)
@@ -23,7 +23,6 @@
package org.jboss.jca.core.connectionmanager;
import org.jboss.jca.common.api.JBossResourceException;
-import org.jboss.jca.core.api.RealConnectionManager;
import org.jboss.jca.core.connectionmanager.listener.ConnectionListener;
import org.jboss.jca.core.connectionmanager.listener.ConnectionState;
import org.jboss.jca.core.connectionmanager.pool.api.ManagedConnectionPool;
@@ -50,8 +49,6 @@
import org.jboss.security.SubjectFactory;
import org.jboss.util.NotImplementedException;
-
-
/**
* AbstractConnectionManager.
*
Modified: projects/jboss-jca/trunk/core/src/main/java/org/jboss/jca/core/connectionmanager/ConnectionManagerImpl.java
===================================================================
--- projects/jboss-jca/trunk/core/src/main/java/org/jboss/jca/core/connectionmanager/ConnectionManagerImpl.java 2009-10-07 19:28:33 UTC (rev 94473)
+++ projects/jboss-jca/trunk/core/src/main/java/org/jboss/jca/core/connectionmanager/ConnectionManagerImpl.java 2009-10-07 20:20:46 UTC (rev 94474)
@@ -23,7 +23,6 @@
package org.jboss.jca.core.connectionmanager;
import org.jboss.jca.core.api.ConnectionManager;
-import org.jboss.jca.core.api.RealConnectionManager;
import javax.resource.ResourceException;
import javax.resource.spi.ConnectionRequestInfo;
Copied: projects/jboss-jca/trunk/core/src/main/java/org/jboss/jca/core/connectionmanager/RealConnectionManager.java (from rev 94473, projects/jboss-jca/trunk/core/src/main/java/org/jboss/jca/core/api/RealConnectionManager.java)
===================================================================
--- projects/jboss-jca/trunk/core/src/main/java/org/jboss/jca/core/connectionmanager/RealConnectionManager.java (rev 0)
+++ projects/jboss-jca/trunk/core/src/main/java/org/jboss/jca/core/connectionmanager/RealConnectionManager.java 2009-10-07 20:20:46 UTC (rev 94474)
@@ -0,0 +1,65 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008-2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.jca.core.connectionmanager;
+
+import org.jboss.jca.core.connectionmanager.listener.ConnectionCacheListener;
+import org.jboss.jca.core.connectionmanager.listener.ConnectionListenerFactory;
+import org.jboss.jca.core.connectionmanager.transaction.JTATransactionChecker;
+
+import javax.resource.ResourceException;
+import javax.resource.spi.ConnectionRequestInfo;
+import javax.resource.spi.ManagedConnectionFactory;
+
+import org.jboss.tm.TransactionTimeoutConfiguration;
+
+/**
+ * Real connection manager contract.
+ * <p>
+ * <ul>
+ * <li>Responsible for managing cached connections over transactional
+ * components via {@link ConnectionCacheListener}</li>
+ * <li>Responsible for managing connection instances using event listener
+ * via {@link ConnectionListenerFactory}</li>
+ * <li>Responsible for managing transaction operations via
+ * {@link TransactionTimeoutConfiguration} and {@link JTATransactionChecker}</li>.
+ * </ul>
+ * </p>
+ * @author <a href="mailto:gurkanerdogdu at yahoo.com">Gurkan Erdogdu</a>
+ * @version $Rev$ $Date$
+ *
+ */
+public interface RealConnectionManager extends
+ ConnectionCacheListener,
+ ConnectionListenerFactory,
+ TransactionTimeoutConfiguration,
+ JTATransactionChecker
+
+{
+ /**
+ * Gets connection handle instance.
+ * @param mcf managed connection factory
+ * @param cri connection request info
+ * @return ne wconnection
+ * @throws ResourceException for exception
+ */
+ public Object allocateConnection(ManagedConnectionFactory mcf, ConnectionRequestInfo cri) throws ResourceException;
+}
More information about the jboss-cvs-commits
mailing list