[jboss-cvs] JBossAS SVN: r70459 - trunk/ejb3/src/main/org/jboss/ejb3/deployers.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Mar 6 00:20:12 EST 2008


Author: ALRubinger
Date: 2008-03-06 00:20:11 -0500 (Thu, 06 Mar 2008)
New Revision: 70459

Removed:
   trunk/ejb3/src/main/org/jboss/ejb3/deployers/JBoss5DependencyPolicy.java
Log:
[EJBTHREE-1202] Remove duplicated class JBoss5DependencyPolicy (exists in EJB3 Codebase)

Deleted: trunk/ejb3/src/main/org/jboss/ejb3/deployers/JBoss5DependencyPolicy.java
===================================================================
--- trunk/ejb3/src/main/org/jboss/ejb3/deployers/JBoss5DependencyPolicy.java	2008-03-06 02:58:29 UTC (rev 70458)
+++ trunk/ejb3/src/main/org/jboss/ejb3/deployers/JBoss5DependencyPolicy.java	2008-03-06 05:20:11 UTC (rev 70459)
@@ -1,64 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., 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.ejb3.deployers;
-
-import org.jboss.ejb3.MCDependencyPolicy;
-import org.jboss.ejb3.dependency.JndiDemandMetaData;
-import org.jboss.ejb3.javaee.JavaEEComponent;
-
-/**
- * Comment
- *
- * @author <a href="mailto:bill at jboss.org">Bill Burke</a>
- * @version $Revision: 44334 $
- */
-public class JBoss5DependencyPolicy extends MCDependencyPolicy
-{
-   public JBoss5DependencyPolicy(JavaEEComponent component)
-   {
-      super(component);
-   }
-
-   
-   @Override
-   public void addJNDIName(String name, ClassLoader loader)
-   {
-      this.addDependency(new JndiDemandMetaData(name, loader));
-   }
-
-   public void addDatasource(String jndiName)
-   {
-      String ds = jndiName;
-      if (ds.startsWith("java:/"))
-      {
-         ds = ds.substring(6);
-
-      }
-      else if (ds.startsWith("java:"))
-      {
-         ds = ds.substring(5);
-      }
-      //tring onStr = "jboss.jca:name=" + ds + ",service=ManagedConnectionFactory";
-      String onStr = "jboss.jca:name=" + ds + ",service=DataSourceBinding";
-      addDependency(onStr);
-   }
-}




More information about the jboss-cvs-commits mailing list