FileDocCategorySizeDatePackage
MCDependencyPolicy.javaAPI DocJBoss 4.2.12093Fri Jul 13 20:53:58 BST 2007org.jboss.ejb3

MCDependencyPolicy

public class MCDependencyPolicy extends Object implements DependencyPolicy
dependency registry for Microcontainer
author
Bill Burke
version
$Revision: 60233 $

Fields Summary
protected HashSet
dependencies
Constructors Summary
Methods Summary
public voidaddDatasource(java.lang.String jndiName)

      String ds = jndiName;
      if (ds.startsWith("java:/"))
      {
         ds = ds.substring(6);

      }
      else if (ds.startsWith("java:"))
      {
         ds = ds.substring(5);
      }
      addDependency(ds);
   
public voidaddDependency(java.lang.String dependency)


      
   
      dependencies.add(dependency);
   
public java.util.HashSetgetDependencies()

      HashSet<DemandMetaData> set = new HashSet<DemandMetaData>();
      for (Object depends : dependencies)
      {
         set.add(new AbstractDemandMetaData(depends));
      }
      return set;