Methods Summary |
---|
public void | addDatasource(java.lang.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";
try
{
dependencies.add(new ObjectName(onStr));
}
catch (MalformedObjectNameException e)
{
throw new RuntimeException(e);
}
|
public void | addDependency(java.lang.String dependency)
ObjectName on = null;
try
{
on = new ObjectName(dependency);
}
catch (MalformedObjectNameException e)
{
throw new RuntimeException(dependency, e);
}
dependencies.add(on);
|
public java.util.Collection | getDependencies()
return dependencies;
|
public java.util.Collection | getDependencies(java.util.Collection currentDependencies)
dependencies.addAll(currentDependencies);
return dependencies;
|