String name = _jndiName;
Jndi.bindDeepShort(name, this);
}
InjectManager manager = InjectManager.create();
BeanFactory<?> factory = manager.createBeanFactory(DataSource.class);
String name = _name;
if (name == null)
name = _jndiName;
if (name == null)
name = _var;
if (_bindingList.size() > 0) {
factory.binding(_bindingList);
}
else {
if (name != null)
factory.binding(Names.create(name));
factory.binding(CurrentLiteral.CURRENT);
}
if (name != null)
factory.name(name);
// factory.stereotype(CauchoDeployment.class);
manager.addBean(factory.singleton(this));
_queryAdmin.register();
_databaseAdmin.register();
}